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 244415 - ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.util.Name
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cas...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-10 11:34 UTC by pepijn
Modified: 2016-07-07 07:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205022


Attachments
stacktrace (7.65 KB, text/plain)
2014-05-10 11:34 UTC, pepijn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pepijn 2014-05-10 11:34:06 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13
OS: Linux

User Comments:
defabricated: I open IDE then I open my project and error shows

GUEST: I recently reported an error. To reproduce it, I found that a library I added caused the bug resulting in netbeans not working.
Download this library https://googledrive.com/host/0B_dolYolq39ZUUZySTFWWE9MMjg/spigot-1.7.2-R0.3-SNAPSHOT.jar
Add it as a compile time library in a project.
When you try to use anything from the library, the project breaks.

pepijn: Building CraftBukkit maven project

Wouto1997: Happens on startup

GUEST: open a new file

GUEST: I changed a library for a project I was working on when suddenly, Netbeans stopped working. http://i.imgur.com/0I3Zvft.png this is a image of the exception. Netbeans reports there are errors in one of my file, but there are no errors in the file, and the project builds without error. The "Stopped working" part is that Netbeans isn't doing anything. It's like editing a file in notepad. No suggestions/warnings/hotkeys/formatting anything. None of the functions you need in an IDE are working. Restarting does not fix the problem.




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.util.Name
   at com.sun.tools.javac.jvm.ClassReader.readName(ClassReader.java:608)
   at org.netbeans.lib.nbjavac.services.NBClassReader.access$900(NBClassReader.java:60)
   at org.netbeans.lib.nbjavac.services.NBClassReader$4.read(NBClassReader.java:104)
   at com.sun.tools.javac.jvm.ClassReader.readAttrs(ClassReader.java:1384)
   at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1374)
   at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:2047)
Comment 1 pepijn 2014-05-10 11:34:08 UTC
Created attachment 147214 [details]
stacktrace
Comment 2 Martin Balin 2016-07-07 07:17:15 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