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.
Build: NetBeans IDE Dev (Build jdk8lambda-1690-on-20130322) VM: OpenJDK 64-Bit Server VM, 25.0-b21, OpenJDK Runtime Environment, 1.8.0-ea-lambda-nightly-h3728-20130318-b82-b00 OS: Windows 7 User Comments: rudyment: Exception occurred after opening the IDE while parsing opened projects Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHash(Check.java:2053) at com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHashIfNeeded(Check.java:2043) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4145) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4074) at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:880) at org.netbeans.lib.nbjavac.services.NBAttr.visitClassDef(NBAttr.java:70)
Created attachment 132978 [details] stacktrace
Created attachment 133036 [details] stacktrace Opened a source file
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=199830
Created attachment 133038 [details] stacktrace .
To reproduce, enable Tools/Options/Editor/Hints/Java/Standard Javac Warnings/Override, and use this code: ----- public class Override extends F { } -----
Created attachment 133048 [details] stacktrace Opened CronTabTest from Jenkins sources. Had bogus error messages in it (should have found generated sources); and this exception was thrown.
Created attachment 133055 [details] stacktrace Opened a Maven project.
Created attachment 133079 [details] stacktrace Havebn't touched the editor for 10 secs or so and got this. I have recently upgraded from 7.3 to 201303232300 with imported settings and have only 3 files open.
This is thrown constantly in the current dev builds; should be considered P2.
Created attachment 133143 [details] stacktrace Typing
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=199830
Created attachment 133150 [details] stacktrace Nothing special.
Tempted to mark this P1 since it renders the IDE close to useless.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/e23e1368aa5c http://hg.netbeans.org/main/nb-javac/rev/2b9b60de0c69
Interestingly we've been seeing the same issue (or very similar) in ENSIME https://github.com/ensime/ensime-server/pull/1764 which can be reproduced by trying to typecheck these snippets (remove our @ syntax for cursor location) in any OpenJDK8 (Windows and OSX seem to throw StackOverflow rather than NullPointerException) | import java.lang.Boolean; | import javafx.application.Application; | import javafx.beans.value.ObservableValue; | import javafx.scene.Scene; | import javafx.scene.control.CheckBox; | import javafx.scene.layout.VBox; | import javafx.stage.Stage; | | public class JavaFxAddListenerTest extends Application { | @Override | public void start(Stage primaryStage) { | VBox root = new VBox(); | CheckBox cb = new CheckBox(); | cb.selectedProperty().addListener((ObservableValue<? extends Bool@0@> ov, Boolean oldValue, Boolean newValue) -> {}); | Scene scene = new Scene(root); | primaryStage.setScene(scene); | primaryStage.show(); | } | | public static void main(String[] args) { | launch(args); | } | } a related issue (doesn't throw in Windows and OSX is) | import java.lang.Boolean; | import javafx.application.Application; | import javafx.beans.value.ObservableValue; | import javafx.scene.Scene; | import javafx.scene.control.CheckBox; | import javafx.scene.layout.VBox; | import javafx.stage.Stage; | | public class JavaFxAddListenerTest extends Application { | @Override | public void start(Stage primaryStage) { | VBox root = new VBox(); | CheckBox cb = new CheckBox(); | ObservableValue<? extends Bool@0@> | Scene scene = new Scene(root); | primaryStage.setScene(scene); | primaryStage.show(); | } | | public static void main(String[] args) { | launch(args); | } | } I noticed that the fix is in http://hg.netbeans.org/main/nb-javac/rev/2b9b60de0c69 which appears to be the SUN javac API. But this fix hasn't made it back to the OpenJDK mainline, for some years. Will that eventually happen? I don't think we want to start using the Netbeans tools.jar but if we did, where is it published?