Project: JDT
Bug 39716 Refactor of nested type broken for default package [refactoring]
Reported: 2003-07-07 18:27:35 | Status: resolved fixed

Problem first noticed in 2.1.1 - it may be in 2.1, never checked. If in the following code, I right click on Baz, Refactor->Convert Nested Type to TopLevel, references (in this _and_ other classes) to "Foo.Baz" end up being refactored to ".Baz" (note the erroneous period). This problem only seems to exists for classes in the default package. public class Foo { public static class Baz { } public Foo() { super(); new Foo.Baz(); } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test25/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test25/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test25/out/Inner.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInnerToTopLevelTests.java