Project: JDT
Bug 77442 Move instance method: import not added [refactoring] [move]
Reported: 2004-11-01 19:20:06 | Status: resolved fixed

I200410260800 package p1; public class A extends Super { } -------------------------------------------------------- package p2; import p1.A; import p3.C; public class B { public static final int VALUE= 10; public void foo(C c) { A a= null; } } ------------------------------------------------------- package p3; public class C { } Move method B#foo to C. Observe: class C is missing an import on A. Tobias, this seems to be a regression. Please try to fix for M3.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test6/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test7/out/B.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java