Bug 224611 - ClassCastException: com.sun.tools.javac.jvm.ClassFile$NameAndType cannot be cast to com.sun.tools.javac.util.Name
ClassCastException: com.sun.tools.javac.jvm.ClassFile$NameAndType cannot be c...
Product: java
Classification: Unclassified
Component: Compiler
All All
: P3 (vote)
Assigned To: Dusan Balek
: 235519 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2013-01-08 12:48 UTC by Exceptions Reporter
Modified: 2016-07-07 07:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

stacktrace (4.20 KB, text/plain)
2013-01-08 12:48 UTC, Exceptions Reporter

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

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]
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

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo