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.
Product Version = NetBeans IDE Dev (Build 200910291407) (#ba1aa161544a) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor --------------------------------------------- import javafx.scene.control.ListView; var animals = ["cat", "dog", "mouse"]; ListView { items: for (animal in animals) "{indexof animal} - {animal}" } --------------------------------------------- - Refactor->Rename the animal variable to animal2 in the 'for (animal in animals)' statement The result is: --------------------------------------------- ListView { items: for (animal2 in animals) "{indexof animal} - {animal2}" } --------------------------------------------- Main.fx:14: cannot find for clause variable named animal. items: for (animal2 in animals) "{indexof animal} - {animal2}" ^ 1 error
fixed in http://hg.netbeans.org/javafx/rev/ee055f65923d
verified in Build 200911160201