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

Summary: ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot be cast to com.sun.tools.javac.code.Attribute$Class
Product: java Reporter: misterm <misterm>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: js-java, puce
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217303
Attachments: stacktrace
Dump-File

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.