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 143422 - ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol cannot be cast to javax.lang.model.element.TypeElement
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol cannot be cast...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Rastislav Komara
URL: http://statistics.netbeans.org/except...
Keywords:
: 151824 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-11 09:55 UTC by gtg
Modified: 2009-11-02 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 89065


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gtg 2008-08-11 09:55:48 UTC
Build: NetBeans IDE Dev (Build 200808110201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.25.11-0.1-default, amd64
User comments: 
STACKTRACE: (first 10 lines)
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol cannot be cast to
javax.lang.model.element.TypeElement
        at org.netbeans.modules.java.source.builder.ElementsService.outermostTypeElement(ElementsService.java:114)
        at org.netbeans.api.java.source.ElementUtilities.outermostTypeElement(ElementUtilities.java:154)
        at org.netbeans.modules.javahints.NPECheck.findProject(NPECheck.java:701)
        at org.netbeans.modules.javahints.NPECheck.access$400(NPECheck.java:90)
        at org.netbeans.modules.javahints.NPECheck$VisitorImpl.getStateFromAnnotations(NPECheck.java:595)
        at org.netbeans.modules.javahints.NPECheck$VisitorImpl.getStateFromAnnotations(NPECheck.java:573)
        at org.netbeans.modules.javahints.NPECheck$VisitorImpl.visitMethodInvocation(NPECheck.java:517)
        at org.netbeans.modules.javahints.NPECheck$VisitorImpl.visitMethodInvocation(NPECheck.java:124)
        at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1312)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
Comment 1 Jan Becicka 2008-08-14 15:40:39 UTC
called by javahints experimental module.
Comment 2 Jan Becicka 2008-11-12 07:33:29 UTC
*** Issue 151824 has been marked as a duplicate of this issue. ***
Comment 3 Rastislav Komara 2009-02-03 10:54:23 UTC
Overtake.
Comment 4 Rastislav Komara 2009-02-16 10:08:45 UTC
this is just experimental module.
Comment 5 Marian Mirilovic 2009-02-20 18:06:22 UTC
update no67 keyword
Comment 6 David Strupl 2009-03-31 16:04:37 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 7 Quality Engineering 2009-11-02 10:57:42 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX