Project: JDT
Bug 108030 [refactoring] Move instance method inserts argument at wrong position
Reported: 2005-08-25 14:36:54 | Status: verified fixed

I20050823-0800 class A { B fB; public void doit(String doitArg) { subroutine(1.2f); } public void subroutine(float subArg) { subsub(); } public void subsub() { } } class B { } - move doit(..) to fB -> compiles - move subroutine(..) to fB -> does not compile since subroutine's new parameter A a is at first position but the argument at the call site is at the second position Please fix and add a second test case where methods have 2 or more parameters.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test36/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test36/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test36/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test36/out/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInstanceMethodTests.java