This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270110 - ClassCastException: class com.sun.tools.javac.api.JavacTool
Summary: ClassCastException: class com.sun.tools.javac.api.JavacTool
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 20:33 UTC by Jan Lahoda
Modified: 2017-03-17 20:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 228455


Attachments
stacktrace (5.14 KB, text/plain)
2017-03-17 20:33 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2017-03-17 20:33:56 UTC
Build: NetBeans IDE Dev (Build 20170314-5646dec7e36a)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Linux

User Comments:
jlahoda: Usually debugging. Custom build from unmodified jet-main.




Stacktrace: 
java.lang.ClassCastException: class com.sun.tools.javac.api.JavacTool
   at java.lang.Class.asSubclass(Class.java:3404)
   at javax.tools.ToolProvider.getSystemTool(ToolProvider.java:132)
   at javax.tools.ToolProvider.getSystemJavaCompiler(ToolProvider.java:63)
   at org.netbeans.modules.java.j2seplatform.queries.DefaultSourceLevelQueryImpl.parsePackage(DefaultSourceLevelQueryImpl.java:219)
   at org.netbeans.modules.java.j2seplatform.queries.DefaultSourceLevelQueryImpl.lambda$isModular$1(DefaultSourceLevelQueryImpl.java:173)
   at java.util.Optional.orElseGet(Optional.java:267)
Comment 1 Jan Lahoda 2017-03-17 20:33:59 UTC
Created attachment 163877 [details]
stacktrace