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.
Build: NetBeans IDE Dev (Build 200910010513) VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Windows XP, 5.1, x86 Steps to reproduce: - Copy the code to the editor: ------------------------------------------------ class Pin{ public var level:Number; } class ElectronicComponent { var pin1: Pin; var pin2: Pin; function switchLevels(){ var level = pin1.level; pin1.level = pin2.level; pin2.level = level; } } ------------------------------------------------ - Reafctor->rename the 'level' variable in the 'switchLevels()' function to 'lev' The result is: ------------------------------------------------ class Pin{ public var lev:Number; // Renamed attribute } class ElectronicComponent { var pin1: Pin; var pin2: Pin; function switchLevels(){ var lev = pin1.level; pin1.level = pin2.level; pin2.level = lev; } } ------------------------------------------------ Main.fx:20: cannot find symbol symbol : variable level location: class javafxapplication12.Main.Pin var lev = pin1.level; Main.fx:21: cannot find symbol symbol : variable level location: class javafxapplication12.Main.Pin pin1.level = pin2.level; Main.fx:21: cannot find symbol symbol : variable level location: class javafxapplication12.Main.Pin pin1.level = pin2.level; Main.fx:22: cannot find symbol symbol : variable level location: class javafxapplication12.Main.Pin pin2.level = lev; 4 errors
fixed as a side-effect of http://hg.netbeans.org/javafx/rev/0132b76a8d5e
verified in netbeans-trunk-nightly-200910030241-javafx-full.zip