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 170585 - ClassCastException: com.sun.tools.javac.code.Symbol$MethodSymbol cannot be cast to javax.lang.model.element.VariableElement
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$MethodSymbol cannot be ca...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: sqe tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: sreimers
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 23:46 UTC by Jesse Glick
Modified: 2009-09-29 00:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 156214


Attachments
stacktrace (6.79 KB, text/plain)
2009-08-18 23:46 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-08-18 23:46:21 UTC
Build: NetBeans IDE Dev (Build 090817)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.28-14-generic, i386

User Comments:
jglick: Trying open Field node from FB result using SQE.



Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$MethodSymbol cannot be cast to javax.lang.model.element.VariableElement
        at org.nbheaven.sqe.core.java.search.impl.SearchVariableVisitor.checkVariable(SearchVariableVisitor.java:44)
        at org.nbheaven.sqe.core.java.search.impl.SearchVariableVisitor.visitVariable(SearchVariableVisitor.java:62)
        at org.nbheaven.sqe.core.java.search.impl.SearchVariableVisitor.visitVariable(SearchVariableVisitor.java:30)
        at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:723)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
        at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
Comment 1 Jesse Glick 2009-08-18 23:46:26 UTC
Created attachment 86417 [details]
stacktrace
Comment 2 Jesse Glick 2009-09-29 00:00:28 UTC
No clue how to reproduce but the cast can be removed: sqe #103798f10f26