Community
Participate
Working Groups
Here is original source code: public class A { public void a() { new B() { public void b(){ m(new C()); } }; } } public class B { public int i = 0; public void m(C c) { i++; } } When B.m(C) is moved to class C "without" delegate, the refactored code is wrong: public class A { public void a() { new B() { public void b(){ new C().m(B.this); /* INCORRECT */ } }; } }
Reproducible with Eclipse 3.8.1 also.
*** Bug 439969 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This problem still exists in 2022-09 M1.
(In reply to Jeff Johnston from comment #5) > This problem still exists in 2022-09 M1. I would say same root cause like described in https://github.com/eclipse-jdt/eclipse.jdt.core/pull/248 JDT model doesn't support types inside anonymous types well.