Project: JDT
Bug 404471 [move method] Annotation error in applying move-refactoring to inherited methods
Reported: 2013-03-27 12:55:32 | Status: resolved fixed

Class A is super-class of class B. Method m of B is inherited from A. public class A { public void m(C c) { } } public class B extends A { @Override public void m(C c) { } } When method m of B is moved to class C (making delegate of m), "@Override" annotation is also moved to C. public class C { @Override //error public void m() { } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test65/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test65/out/A.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