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 - ClassCastException: com.sun.tools.javac.code.Type$UnknownType cannot be cast to com.sun.tools.javac.code.Type$ArrayType
Summary: ClassCastException: com.sun.tools.javac.code.Type$UnknownType cannot be cast ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 10:13 UTC by Exceptions Reporter
Modified: 2016-09-22 10:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226362


Attachments
stacktrace (11.14 KB, text/plain)
2016-09-22 10:13 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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