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 145214 - ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-08-26 21:23 UTC by Jesse Glick
Modified: 2009-10-23 10:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 99435


Attachments
stacktrace (5.52 KB, text/plain)
2008-08-26 21:23 UTC, Jesse Glick
Details
stacktrace (5.82 KB, text/plain)
2008-08-27 21:19 UTC, Jesse Glick
Details
stacktrace (5.81 KB, text/plain)
2008-10-28 21:43 UTC, Jesse Glick
Details
stacktrace (7.78 KB, text/plain)
2008-11-16 22:46 UTC, interpaul
Details
stacktrace (7.78 KB, text/plain)
2008-11-16 22:47 UTC, interpaul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-08-26 21:23:00 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Opening Apache Ant (dev) as an autoproject.

Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol
        at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2320)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350)
        at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1914)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1926)
        at com.sun.tools.javac.comp.Lower.visitAssign(Lower.java:2641)
Comment 1 Jesse Glick 2008-08-26 21:23:07 UTC
Created attachment 68382 [details]
stacktrace
Comment 2 Jesse Glick 2008-08-27 21:19:18 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Opened Ant dev as autoproject.

Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol
        at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2320)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350)
        at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1914)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1926)
        at com.sun.tools.javac.comp.Lower.visitAssign(Lower.java:2641)
Comment 3 Jesse Glick 2008-08-27 21:19:27 UTC
Created attachment 68483 [details]
stacktrace
Comment 4 Jesse Glick 2008-10-28 21:42:53 UTC
Build: NetBeans IDE Dev (Build 081022)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.24-21-generic, i386

User Comments: 
Opening Apache Ant as autoproject.

Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol
        at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2322)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350)
        at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1916)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1928)
        at com.sun.tools.javac.comp.Lower.visitAssign(Lower.java:2643)
Comment 5 Jesse Glick 2008-10-28 21:43:02 UTC
Created attachment 72800 [details]
stacktrace
Comment 6 interpaul 2008-11-16 22:46:43 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 
Scanning projects...

Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol
        at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2322)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350)
        at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1916)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1928)
        at com.sun.tools.javac.comp.Lower.visitAssign(Lower.java:2643)
Comment 7 interpaul 2008-11-16 22:46:48 UTC
Created attachment 73805 [details]
stacktrace
Comment 8 interpaul 2008-11-16 22:47:43 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$PackageSymbol cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol
        at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2322)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350)
        at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1916)
        at com.sun.tools.javac.comp.Lower.translate(Lower.java:1928)
        at com.sun.tools.javac.comp.Lower.visitAssign(Lower.java:2643)
Comment 9 interpaul 2008-11-16 22:47:46 UTC
Created attachment 73806 [details]
stacktrace
Comment 10 Exceptions Reporter 2008-12-23 04:25:06 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=99435
Comment 11 Dusan Balek 2009-10-23 10:31:34 UTC
Since there is no reproducible test case and there are no exception reports after NB 6.5, closing as WORKSFORME now. If
you are still able to reproduce it using the current dev build, please reopen the issue and attach steps to reproduce.
Thanks.