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 188035 - Adding expression to Watch throws ClassCastException: DialogBindingTokenId cannot be cast to JFXTokenId
Summary: Adding expression to Watch throws ClassCastException: DialogBindingTokenId ca...
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2010-06-24 09:16 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 170958


Attachments
stacktrace (5.74 KB, text/plain)
2010-06-24 09:16 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-06-24 09:16:45 UTC
Build: NetBeans IDE Dev (Build 201006240001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
sunflower: Steps to reproduce:
- Copy the code to the editor:
-----------------------------------------------------------
class A{
    public function show() {  // <-- Set a breakpoint
            println("A");
    }
}

class B extends A{
    override function show() {   // <-- Set a breakpoint
            println("B");
    }
}

var a = A{};
a.show();

var b = B{};
b.show();
-----------------------------------------------------------

- Set breakpoints to the show() function in the A and B classes
- Debug the project

- Go to the Variables window
- Add the following expression  to the watch:  name + "1"
The ClassCastException  pops up




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.editor.lib2.DialogBindingTokenId cannot be cast to org.netbeans.api.javafx.lexer.JFXTokenId
   at org.netbeans.modules.javafx.editor.BracketCompletion.completeQuote(BracketCompletion.java:674)
   at org.netbeans.modules.javafx.editor.JavaFXEditorKit$JavaFXDefaultKeyTypedAction.insertString(JavaFXEditorKit.java:229)
   at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$1.run(BaseKit.java:1106)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:344)
   at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1077)
   at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1067)
Comment 1 Alexandr Scherbatiy 2010-06-24 09:16:49 UTC
Created attachment 100383 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-06-24 09:26:15 UTC
JavaFX Composer FXJDI: #31
Comment 3 David Strupl 2011-05-16 13:52:48 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.