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.
JavaFX_NB_Plugin_NB65_promoted: #54 2008-10-27_03-01-09.zip Product Version = NetBeans IDE 6.5 RC1 (Build 200810171318) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor: ------------------------------------------------- var a = 10; var b = 20; ------------------------------------------------- - Set a breakpoint to the 'b' variable - Debug the file - Open Watches window - Add new watch expression: a The 'a' value is not shown: >Unsupported, not an expression: "package javafxapplication5; class Main { /*synthetic*/ public static synthetic function javafx$run$(parameter script only (default)<ARGS>: String[];)java.lang.Object private protected static final synchronized { variable initialization for static script only (default) var a = 10; variable initialization for static script only (default) var b = 20; } static script only (default) var a = 10; static script only (default) var b = 20; } "<
I always get null tree from TreeUtilities.parseExpression method, but it was work recently. David could you take a look into it?
Hello, did you try almost the same but inside a function like function foo() { var a = 10; var b = 20; } I think it should work there? The problem with the declaration is that you cannot type an expression around the declared variables. At least I think. It will need a bit more investigation. Maybe we could add a function called blablablablabla() around the expression in such cases so the expression can be parsed?
> did you try almost the same but inside a function like It does not work too: - Copy the code to the editor: ------------------------------------------------- function foo() { var a = 10; var b = 20; } foo(); ------------------------------------------------- - Set a breakpoint to the 'a' variable - Debug the file - Open Watches window - Add new watch expression: a >Unsupported, not an expression: "{ a script only (default)var a = 10; script only (default)var b = 20; }"<
I think this should be fixed on our side now (before release).
Fixed in TreeUtilities.parseExpression after changeset 1709:43a5c01dcd44
verified in 2008-11-06_03-01-09.zip