Project: JDT
Bug 102020 [move member type] adds call to uncreated field [refactoring]
Reported: 2005-06-28 10:31:39 | Status: verified fixed

In I20050627-1435. Code: public class Foo { private static final class Bar { private Class baz() { return getClass(); } } private void bar() { new Bar(); } } Select Bar, and Move Member Type to New File. The new class created is: final class Bar { private Class baz() { return _foo.getClass(); } } 1) The call should simply be getClass(), with no reference to _foo. ("_" is the field prefix set in the Preferences)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test38/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test38/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test38/out/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInnerToTopLevelTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java