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.
This bug was originally marked as duplicate of bug 251390, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 (Build 201510222201) VM: Java HotSpot(TM) Client VM, 25.66-b18, Java(TM) SE Runtime Environment, 1.8.0_66-b18 OS: Windows 10 User Comments: GUEST: Was editing java code. Noticed message icon at bottom of window. Stacktrace: java.lang.ClassCastException: com.sun.tools.javac.code.Type$UnknownType cannot be cast to com.sun.tools.javac.code.Type$ArrayType at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.validateAnnotatedType(Attr.java:4862) at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitVarDef(Attr.java:4722) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:858) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57) at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitBlock(Attr.java:4779)
Created attachment 162170 [details] stacktrace