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 179994 - ClassCastException: com.sun.tools.mjavac.code.Type$ErrorType cannot be cast to javax.lang.model.type.ExecutableType
Summary: ClassCastException: com.sun.tools.mjavac.code.Type$ErrorType cannot be cast t...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-29 06:26 UTC by Alexandr Scherbatiy
Modified: 2010-02-11 04:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164701


Attachments
stacktrace (1.95 KB, text/plain)
2010-01-29 06:26 UTC, Alexandr Scherbatiy
Details
JavaFX project (117.99 KB, application/zip)
2010-01-29 06:31 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-29 06:26:05 UTC
Build: NetBeans IDE Dev (Build 201001190201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

Stacktrace: 
java.lang.ClassCastException: com.sun.tools.mjavac.code.Type$ErrorType cannot be cast to javax.lang.model.type.ExecutableType
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionEnvironment.addMembers(JavaFXCompletionEnvironment.java:400)
   at org.netbeans.modules.javafx.editor.completion.environment.MemberSelectTreeEnvironment.inside(MemberSelectTreeEnvironment.java:144)
   at org.netbeans.modules.javafx.editor.completion.environment.MemberSelectTreeEnvironment.inside(MemberSelectTreeEnvironment.java:67)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.resolveCompletion(JavaFXCompletionQuery.java:397)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.run(JavaFXCompletionQuery.java:344)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.run(JavaFXCompletionQuery.java:77)
Comment 1 Alexandr Scherbatiy 2010-01-29 06:26:10 UTC
Created attachment 93655 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-01-29 06:30:45 UTC
Steps to reproduce:

- Open the attached project
- Open the class mathematics.multidimensional.shape.MDText
- Go to the 'duplicate()' method
- Position cursor on line 
-----------------------------------
     content: bind shape.|text   // | means cursor
-----------------------------------

- Press <Ctrl+Space>

The exception pops up.
Comment 3 Alexandr Scherbatiy 2010-01-29 06:31:49 UTC
Created attachment 93656 [details]
JavaFX project
Comment 4 Petr Nejedly 2010-02-09 16:06:32 UTC
Fixed:
http://hg.netbeans.org/javafx/rev/e3da37911049
Comment 5 Alexandr Scherbatiy 2010-02-11 04:50:05 UTC
verified in NetBeans-JavaFX-Soma: #149