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.
Steps to reproduce: - Copy the code to the editor: ----------------------------------------------------------- function f() { var seq = [1, 2, 3]; for (n in seq) { println(n); } for (m in seq) { var n = m * m; println(n); } } ----------------------------------------------------------- - Refactor-> Rename the 'n' to 'n2' variable in 'for (n in seq) {' loop The 'n' variable is renamed in the second loop instead of the first - Build the code JavaFXApplication13\src\javafxapplication13\Main.fx:18: cannot find symbol symbol : variable n2 location: class javafxapplication13.Main println(n2); 1 error
Actually, this issue will be observable when renaming any local variable with the same named non-local variable. I have fix ready but it will probably not get to 6.8.
fixed in http://hg.netbeans.org/javafx/rev/149afda001e7
verified in NetBeans-JavaFX-Soma #60
The fix has been ported to release68_fixes branch http://hg.netbeans.org/javafx/rev/67fcd4101012
Verified in netbeans-6.8-201001241915-javafx-full.zip patch1 from /builds/netbeans/6.8/fixes