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 252403 - ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot be cast to com.sun.tools.javac.code.Attribute$Class
Summary: ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot...
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: 2015-05-14 19:45 UTC by misterm
Modified: 2016-07-02 13:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217303


Attachments
stacktrace (3.57 KB, text/plain)
2015-05-14 19:45 UTC, misterm
Details
Dump-File (10.34 KB, text/plain)
2015-07-28 08:50 UTC, js-java
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2015-05-14 19:45:19 UTC
Build: NetBeans IDE Dev (Build 20150512-73a3c3320c5d)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 8

User Comments:
misterm: .




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot be cast to com.sun.tools.javac.code.Attribute$Class
   at com.sun.tools.javac.comp.Check.validateRepeatable(Check.java:2891)
   at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4519)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4462)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4390)
   at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4365)
   at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1317)
Comment 1 misterm 2015-05-14 19:45:20 UTC
Created attachment 153670 [details]
stacktrace
Comment 2 js-java 2015-07-28 08:49:55 UTC
Had the same issue several times. Some times NB takes 100% CPU and does not come back. This happened when I save a file (which is quite bad because all modifications are lost!).

I will attach a dump.
Comment 3 js-java 2015-07-28 08:50:32 UTC
Created attachment 154967 [details]
Dump-File
Comment 4 js-java 2015-07-28 08:58:37 UTC
Because I was no longer able to save this file, always NB hanging, I deleted the filehistory directory (var/filehistory). Looks like that was helping.