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.

Bug 268150

Summary: ClassCastException: com.sun.tools.javac.code.Type$UnknownType cannot be cast to com.sun.tools.javac.code.Type$ArrayType
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226362
Attachments: stacktrace

Description Exceptions Reporter 2016-09-22 10:13:20 UTC
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)
Comment 1 Exceptions Reporter 2016-09-22 10:13:22 UTC
Created attachment 162170 [details]
stacktrace