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 20130828-814a27f8b811) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21 OS: Linux User Comments: jlahoda: R.java in the default package: package use; import java.lang.annotation.Repeatable; @RA(E.A) @RA(E.B) public class R { } enum E { A, B; } @Repeatable(RAC.class) @interface RA { E value(); } @interface RAC { RA[] value(); } Stacktrace: java.lang.ClassCastException: com.sun.tools.javac.code.Attribute$Error cannot be cast to com.sun.tools.javac.code.Attribute$Class at com.sun.tools.javac.comp.Check.validateRepeatable(Check.java:2750) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4437) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4378) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4312) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4286) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1288)
Created attachment 139979 [details] stacktrace
And I had another copy of the file in the "use" package - first happened to me when I was tried to move the file from the use package into the default package.
Created attachment 144902 [details] stacktrace Using code completion
Created attachment 146028 [details] stacktrace Editing annotation @interface that use @Repeatable
Created attachment 148772 [details] stacktrace Editing file
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203805
Created attachment 148798 [details] stacktrace Adding a @Repeatable Annotation, Codecompletion in @Repeatable (|)
Created attachment 153285 [details] stacktrace I created annotation which uses @Repeatable (using the tutorial - http://softwarecave.org/2014/05/20/repeating-annotations-in-java-8/ ) and then this error happend not allowing me to try this class. If you want more info write me on petriczekk@gmail.com
Created attachment 153668 [details] stacktrace Typing
Created attachment 153669 [details] stacktrace .
Created attachment 153677 [details] stacktrace .