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 230865 - ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cas...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 14:13 UTC by twolf2919
Modified: 2013-06-12 02:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200087


Attachments
stacktrace (2.57 KB, text/plain)
2013-06-06 14:13 UTC, twolf2919
Details

Note You need to log in before you can comment on or make changes to this bug.
Description twolf2919 2013-06-06 14:13:44 UTC
This issue was reported manually by pjiricka.
It already has 5 duplicates 


Build: NetBeans IDE Dev (Build 201306052301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
jmichelberger: Again

jmichelberger: Terminated debugging

rudyment: While renaming a class

twolf2919: After installing the dev build (J2SE), one of my projects - a webapp - didn't show up in the list of Projects.  I figured it was because I didn't yet install J2EE Base and Tomcat plugins, so I did.  Then (without restarting the IDE), I opened the webapp project and saw that it had error badges in a bunch of files (even though it compiled fine in NB 7.3 just before).  So I tried to open one of the badged files and got this exception.

jmichelberger: During debugging step




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javac.code.Symbol$MethodSymbol
   at com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHash(Check.java:2050)
   at com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHashIfNeeded(Check.java:2044)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4278)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4208)
   at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:887)
   at org.netbeans.lib.nbjavac.services.NBAttr.visitClassDef(NBAttr.java:70)
Comment 1 twolf2919 2013-06-06 14:13:46 UTC
Created attachment 135451 [details]
stacktrace
Comment 2 twolf2919 2013-06-09 20:28:54 UTC
I can't really do my work (or NetCAT testing) until this bug is addressed (I reverted back to 7.3 for now).  If you need any additional info, please let me know.
Comment 4 Quality Engineering 2013-06-12 02:03:38 UTC
Integrated into 'main-golden', will be available in build *201306112301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b3d37c3475d8
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #230865, #226090, and #230937 fixed.