Project: JDT
Bug 63519 "Move member type to new file" omits to add imports [refactoring]
Reported: 2004-05-22 07:51:51 | Status: resolved fixed

Given the following two classes: --- package foo; public abstract class Superclass { public int i; protected class Inner { void go() { i = 1; } } public abstract void go(Inner param); } --- package bar; import foo.Superclass; public class Subclass extends Superclass { public void go(Inner param) {} } --- extracting Inner to a new file (with default settings) produces non-building code, because: - Subclass receives no 'import foo.Inner' (so, Inner can't be resolved) - Inner is declared as package-visible, not public-visible (so, the import wouldn't work anyway) Eclipse 3.0M9

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