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 224611

Summary: ClassCastException: com.sun.tools.javac.jvm.ClassFile$NameAndType cannot be cast to com.sun.tools.javac.util.Name
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: ksrini
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 175894
Attachments: stacktrace

Description Exceptions Reporter 2013-01-08 12:48:02 UTC
This bug was originally marked as duplicate of bug 192481, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2.1 (Build 201210100934)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.12-b01-434, Java(TM) SE Runtime Environment, 1.6.0_37-b06-434-11M3909
OS: Mac OS X

User Comments:
GUEST: I was trying to copy a java file from one project to another.




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.jvm.ClassFile$NameAndType cannot be cast to com.sun.tools.javac.util.Name
   at com.sun.tools.javac.jvm.ClassReader.readName(ClassReader.java:575)
   at com.sun.tools.javac.jvm.ClassReader$22.read(ClassReader.java:1171)
   at com.sun.tools.javac.jvm.ClassReader.readAttrs(ClassReader.java:1335)
   at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1325)
   at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1809)
   at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2009)
Comment 1 Exceptions Reporter 2013-01-08 12:48:04 UTC
Created attachment 129999 [details]
stacktrace
Comment 2 sbtourist 2013-03-21 18:34:13 UTC
Any news on this one?

When it happens, it makes the whole IDE unusable.
Comment 3 Dusan Balek 2014-07-14 12:56:59 UTC
*** Bug 235519 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 07:16:29 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss