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.
[jdk1.5.0] When I added an annotation (via code completion) to a simple class I get following exception. public @interface MyAnn { } public @MyAnn class NewClass { public NewClass() { } }
Created attachment 20888 [details] IndexOutOfBoundsException
I am able to reproduce it quite reliably now. I have also found following two .dump files in my console so I attach them here as suggested in the error message.
Created attachment 20901 [details] NewClass.java.dump
Created attachment 20902 [details] NewClass.java_1.dump
Tom, please look at it. The first part of the dump file contains the source code in the state when the parser failed to parse it and (separated by dashes) the dump contains the exception that was thrown from the parser when parsing that file.
Fixed IOBE. The AST now incorrectly claims that the name of the annotation is "class" (when source has "public @class Foo"), but that's the only way to ensure that the error annotation is represented. The error checker correctly reports the problem, with the correct error text.
Forgot to mark as fixed...
seems to be working -> verified
Reorganization of java component