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 179661 - Find usages throws ClassCastException: tree.JFXVar cannot be cast to tree.JFXOverrideClassVar
Summary: Find usages throws ClassCastException: tree.JFXVar cannot be cast to tree.JFX...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 04:26 UTC by Alexandr Scherbatiy
Modified: 2010-02-04 03:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164417


Attachments
stacktrace (10.49 KB, text/plain)
2010-01-19 04:26 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-01-19 04:26:39 UTC
Build: NetBeans IDE Dev (Build 201001180201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

User Comments:
sunflower: Steps to reproduce:

- Open the project JavaFX project
http://netbeans.org/bugzilla/attachment.cgi?id=93404

- Go to the galaxyfx.deepspace.design.MapView class
- Select popup variable in the 'var popup: Node' line
- Right-click and Invoke Find Usages

The exception pops up




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javafx.tree.JFXVar cannot be cast to com.sun.tools.javafx.tree.JFXOverrideClassVar
   at org.netbeans.api.javafx.source.ElementUtilities$1.scan(ElementUtilities.java:277)
   at org.netbeans.api.javafx.source.ElementUtilities$1.scan(ElementUtilities.java:253)
   at com.sun.javafx.api.tree.JavaFXTreeScanner.scan(JavaFXTreeScanner.java:94)
   at com.sun.javafx.api.tree.JavaFXTreeScanner.scanAndReduce(JavaFXTreeScanner.java:111)
   at com.sun.javafx.api.tree.JavaFXTreeScanner.visitInstantiate(JavaFXTreeScanner.java:280)
   at com.sun.tools.javafx.tree.JFXInstanciate.accept(JFXInstanciate.java:122)
Comment 1 Alexandr Scherbatiy 2010-01-19 04:26:44 UTC
Created attachment 93405 [details]
stacktrace
Comment 2 J Bachorik 2010-01-19 06:15:52 UTC
It seems to have had the same root cause as #179490

fixed in http://hg.netbeans.org/javafx/rev/6b71f5af4690
Comment 3 Alexandr Scherbatiy 2010-02-04 03:57:33 UTC
verified  in NetBeans-JavaFX-Soma: #142