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 192481 - [70cat] ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.util.Name
Summary: [70cat] ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol canno...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 16:51 UTC by kvaso
Modified: 2012-07-04 03:08 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173333


Attachments
stacktrace (6.50 KB, text/plain)
2010-11-25 16:51 UTC, kvaso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kvaso 2010-11-25 16:51:38 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
kvaso: while saving file with errors...but I did it many times before and there was no problem...

devon_c_miller: This happens when I select a package in Projects and type Ctrl+C, then select the Source Packages of a different, open project  and type Ctrl+V.

GUEST: clean and build

aldobrucale: Autocompletion of a class not yet imported (CharSequence)

aldobrucale: creating a method by following an editor suggestion

GUEST: refreshing project after building from maven from CLI

tjansson: Tried to import a reference to a jar file.




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:542)
   at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1899)
   at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2095)
   at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2167)
   at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2382)
   at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2306)
Comment 1 kvaso 2010-11-25 16:51:42 UTC
Created attachment 103335 [details]
stacktrace
Comment 2 Dusan Balek 2010-12-17 09:12:12 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/08e4360ea2a7

changeset 8560c976c94d in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=8560c976c94d
Comment 3 Quality Engineering 2010-12-18 06:10:05 UTC
Integrated into 'main-golden', will be available in build *201012180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/08e4360ea2a7
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #192481: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.util.Name - fixed.
Comment 4 Quality Engineering 2012-07-04 03:08:26 UTC
Integrated into 'main-golden', will be available in build *201207040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2365723a8d4a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: Bug #192481 has been fixed, removing workaround for it.