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 155842 - Fix imports throws ClassCastException
Summary: Fix imports throws ClassCastException
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks: 151965
  Show dependency tree
 
Reported: 2008-12-19 13:58 UTC by Alexandr Scherbatiy
Modified: 2009-01-13 13:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (41.18 KB, text/plain)
2008-12-19 13:59 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-12-19 13:58:38 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_latest_SDK_installer:  #3 	19-Dec-2008 00:46:48

  Product Version         = NetBeans IDE 6.5 (Build 200812180656)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.

Steps to reproduce:

- Create a JavaFX Script project
- Invoke Fix Imports
 ClassCastException pops up:

java.lang.ClassCastException: com.sun.tools.javac.util.Name cannot be cast to java.lang.Comparable
	at java.util.TreeMap.getEntry(TreeMap.java:325)
	at java.util.TreeMap.containsKey(TreeMap.java:209)
	at java.util.TreeSet.contains(TreeSet.java:217)
	at org.netbeans.modules.javafx.editor.imports.IdentifierVisitor.visitIdentifier(IdentifierVisitor.java:64)
	at org.netbeans.modules.javafx.editor.imports.IdentifierVisitor.visitIdentifier(IdentifierVisitor.java:45)
	at com.sun.tools.javafx.tree.JFXIdent.accept(JFXIdent.java:66)
	at com.sun.javafx.api.tree.JavaFXTreeScanner.scan(JavaFXTreeScanner.java:80)
	at com.sun.javafx.api.tree.JavaFXTreeScanner.visitCompilationUnit(JavaFXTreeScanner.java:120)
	at com.sun.tools.javafx.tree.JFXScript.accept(JFXScript.java:141)
	at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1$1.run(JavaFXImports.java:129)
	at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1$1.run(JavaFXImports.java:117)
	at org.netbeans.api.javafx.source.JavaFXSource.runUserActionTask(JavaFXSource.java:491)
[catch] at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1.run(JavaFXImports.java:116)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexandr Scherbatiy 2008-12-19 13:59:13 UTC
Created attachment 75189 [details]
IDE log file
Comment 2 David Strupl 2009-01-13 10:17:59 UTC
Fix imports --> Rasta.
Comment 3 Rastislav Komara 2009-01-13 12:47:49 UTC
Fixed as side issue.
Comment 4 Alexandr Scherbatiy 2009-01-13 13:03:25 UTC
verified in JavaFX_NB_Plugin_Franca_NB_65_fixes_latest_SDK: #41 13-Jan-2009 00:11:09