Project: JDT
Bug 77950 Move Instance Method: should adapt Javadocs [refactoring] [move method]
Reported: 2004-11-05 09:59:54 | Status: resolved fixed

I200411042000 References in Javadocs should be updated when a method is moved. Given: package p; class C { public void caller() { method(new Other()); } /** * Doku * @see #caller() */ public void method(Other arg) { arg.toString(); } } class Other { } - Move method(..) to parameter arg => The MethodRef #caller() must be qualified by C or p.C - From original code, move method(..) to parameter arg, creating a delegate => The MethodRef #caller() in the new method's Javadoc must be qualified by C or p.C. Should also think about whether the javadoc should really be duplicated.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test0/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test0/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test0/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test1/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test1/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test1/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test10/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test10/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test10/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test11/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test11/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test11/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test12/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test12/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test12/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test13/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test13/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test13/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test14/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test14/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test14/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test15/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test15/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test16/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test16/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test17/in/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test17/out/Rectangle.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test17/out/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test18/in/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test18/out/Rectangle.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test18/out/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test19/in/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test19/out/Rectangle.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test19/out/Shape.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test2/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test2/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test2/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test20/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test20/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test20/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test21/out/Second.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test22/out/Second.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test23/out/Second.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test24/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test25/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test26/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test26/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test26/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/in/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/in/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/out/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test27/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/in/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/in/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/out/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test28/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/in/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/in/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/in/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/out/P.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/out/TC.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test29/out/TR.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test3/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test4/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test5/out/B.java 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.tests.refactoring/resources/MoveInstanceMethod/canMove/test8/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test8/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test8/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test9/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/cannotMove/testFail13/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/cannotMove/testFail13/in/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInstanceMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodRefactoring.java