Project: JDT
Bug 40767 refactor rename method failure [refactoring]
Reported: 2003-07-25 10:42:46 | Status: resolved fixed

--------------------A.java--------------------------- package a; public class A { private static final A g_instance = new A(); private A() { } public static A getInstance()//<-- refactor rename this method { return g_instance; } } ------------------------------------------------------ ----------------------B.java-------------------------- package a; public class B { I i = new I() { public void method() { A.getInstance(); } }; } interface I { public void method(); } ----------------------------------------------------- when you rename the above marked method you get an error saying that another name shadows access to the renamed element. If you click continue B.java does not get updated.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/SearchResultGroup.java