Community
Participate
Working Groups
When a method of anonymous class declaration is moved, references to the member of the anonymous class are incorrectly updated. See below: ----------- BEFORE ----------- public class A { public void m() { new B() { public int i; public void n(C c) { // TO BE MOVED i++; } }; } } public class B { } public class C { } ---------- AFTER ---------- public class A { public void m() { new B() { public int i; }; } } public class B { } public class C { public void n(B arg) { arg.i++; // ERROR } }
This case should also be handled when working on bug 432845. *** This bug has been marked as a duplicate of bug 432845 ***