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 190329 - [69cat] ClassCastException: com.sun.tools.javac.code.Symbol$VarSymbol cannot be cast to javax.lang.model.element.ExecutableElement
Summary: [69cat] ClassCastException: com.sun.tools.javac.code.Symbol$VarSymbol cannot ...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 10:41 UTC by Petr Jiricka
Modified: 2010-09-27 14:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172479


Attachments
stacktrace (810 bytes, text/plain)
2010-09-13 10:41 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-09-13 10:41:17 UTC
This issue was reported manually by pjiricka.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build web-main-3826-on-100910)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01-279, Java(TM) SE Runtime Environment, 1.6.0_20-b02-279-10M3065
OS: Mac OS X

User Comments:
pjiricka: Find usages for a static Java field.

athompson: tried to rename a field




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$VarSymbol cannot be cast to javax.lang.model.element.ExecutableElement
   at org.netbeans.modules.web.el.refactoring.ELWhereUsedQuery.prepare(ELWhereUsedQuery.java:119)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:218)
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:827)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1426)
Comment 1 Petr Jiricka 2010-09-13 10:41:41 UTC
Created attachment 101997 [details]
stacktrace
Comment 2 Erno Mononen 2010-09-27 14:06:21 UTC
This seems to be fixed, or at least I wasn't able to reproduce. I've added some additional checking for element types not too long ago, so that change might have fixed this. Please reopen if this is still reproducible for you.