Project: JDT
Bug 97215 [refactoring] Pull Up creates error when not deleting method and enable @Override errors
Reported: 2005-05-30 06:48:05 | Status: resolved fixed

3.1-RC1 test pass - have two CUs, SuperType and SubType - configure errors such that a missing @Override annotation is an error - pull up a method from SubType to SuperType - choose not to delete the original method in SubType -> no warnings issued -> refactoring results in an error in SubType, as the method overrides the pulled up copy expected one of those two: - a non-fatal error is issued before completing the refactoring - the refactoring offers to adjust the code by adding the annotation

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