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 7.4 Beta (Build 201306132201) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Using the current netbeans 7.4 beta, I encounter the following behaviour : "introduce variable" to a part of code with right comments, the right comments are also copied to the line of the new variable. Exemple, the following code : return super.getUnmodifiableWidget(); //To change body of generated methods, choose Tools | Templates. becomes after introducing my new variable : final Widget unmodifiableWidget = super.getUnmodifiableWidget(); //To change body of generated methods, choose Tools | Templates. return unmodifiableWidget; //To change body of generated methods, choose Tools | Templates. The comments are seen twice, I don't think it is a wanted behaviour.
Should be already fixed in 8.0 release