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_daily: #291 Product Version = NetBeans IDE Dev (Build 200809151401) 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; java.lang.System.out.println("var = {a}"); -------------------------------------- - Hold <Ctrl> and click mouse on 'a' in "var = {a}" string Go to declaration does not work
This looks like a bug in parser. The parsed tree for <<"var = {a}">> looks like: STRING_EXPRESSION [0,11] - STRING_LITERAL [0,8] - STRING_LITERAL [8,9] - IDENTIFIER [8,9] - STRING_LITERAL [9,11] The second subtree (STRING_LITERAL [8,9]) shouldn't be there, makes no sense and breaks the identifier lookup.
This problem is gone now, it seems, though the compiler still generated an overlapping AST node....
verified in build netbeans-trunk-nightly-200910071536-javafx-full.zip