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 8.0.2 (Build 201408251540) Operating System = Linux version 3.13.0-44-generic running on amd64 Java; VM; Vendor = 1.7.0_76 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.76-b04 Has similar symptoms to 248785, but reporting separately as it is a different type of refactoring. Screen shots will be supplied shortly. An "introduce local variable" refactoring with 3 occurrences, marking final, produces very garbled output and does not refactor every occurrence.
Created attachment 151718 [details] IDE log
Created attachment 151719 [details] screen shot before refactoring
Created attachment 151720 [details] screen shot after refactoring
Seems similar in symptoms to 248785
I'v tried with a simplistic example but I didn't reproduce the defect; could you try to edit the example adding constructs (not the exact text, but rather the structure) like your real source code so it starts trigger the defect ? import java.util.ArrayList; import java.util.List; /** * * @author sdedic */ public class BugRefactoring { private List<C> workingOrders = new ArrayList<>(); public void foo(boolean par) { workingOrders.get(0).addCartPayment(0); if (par) { workingOrders.get(0).addCartPayment(1); } else { workingOrders.get(0).addCartPayment(2); } } public C getSomeValue() { return null; } static class C { public void addCartPayment(int a) { } } }
I can no longer reproduce this problem, even on a full version of that class.
OK, closing as WORKSFORME until reproduction is found