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 NetBeans-742-on-20150508) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14 OS: Linux User Comments: tboudreau: Selecting text in the editor containing the following (invalid) class: */ public @interface Hint { p String key(); String value(); } Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Check.checkNonCyclicElements(Check.java:3328) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4583) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4462) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4390) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4365) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1317)
Created attachment 153575 [details] stacktrace
Created attachment 154532 [details] stacktrace Typing
Created attachment 154555 [details] stacktrace Edit code and invoke code-complete in java annotation class
Created attachment 155654 [details] A dump file NetBeans told me to attach
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=217203
Created attachment 155655 [details] stacktrace Eror occurs on every save now
Created attachment 155656 [details] stacktrace Eror occurs on every save now
To reproduce, create a new Java Annotation Type with the contents below. In this case, the problem is the missing "<" in "Class<?>". public @interface Issue { Class?> group(); }
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=217203
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=217203
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/16f93951723e http://hg.netbeans.org/main/nb-javac/rev/c9e5e1c089ab
Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/16f93951723e User: Dusan Balek <dbalek@netbeans.org> Log: Issues #252312 and #246512 fixed.