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 151824 - 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 DUPLICATE of bug 143422
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 07:58 UTC by Exceptions Reporter
Modified: 2008-11-12 07:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 79355


Attachments
stacktrace (5.33 KB, text/plain)
2008-10-30 07:58 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2008-10-30 07:58:22 UTC
Build: NetBeans IDE Dev (Build 200810240201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, amd64

Stacktrace: 
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:97)
        at org.netbeans.api.java.source.ElementUtilities.outermostTypeElement(ElementUtilities.java:158)
        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)
Comment 1 Exceptions Reporter 2008-10-30 07:58:26 UTC
Created attachment 72875 [details]
stacktrace
Comment 2 Jan Becicka 2008-11-12 07:33:30 UTC

*** This issue has been marked as a duplicate of 143422 ***