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.
Introduce method changes variable name incorrectly Steps to reproduce: 1) have a code: public class Test { String val; public void m(String val) { this.val = val; System.out.println(val); } } 2) select this.val = val; and introduce method from it -> public class Test { String val; public void m(String val) { newMethod(val); System.out.println(val1); // <---- val1 is not declared! } private void newMethod(String val1) { this.val = val1; } }
Fixed in jet-main#586929209076
Integrated into 'main-silver', will be available in build *201405250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/586929209076 User: Svata Dedic <sdedic@netbeans.org> Log: #244129: name replacement is done just in the refactored part of the method