Project: JDT
Bug 200580 [pull up] final method in interface makes uncompilable code
Reported: 2007-08-20 12:55:56 | Status: verified fixed

Observed behavior: If class Foo implements interface IFoo and I try to pull up (Refactor->Pull Up...) method final int getSome(){ return 1; } The method in IFoo becomes final int getSome(); which is not compilable because interface methods cannot be final. Expected behavior: pulled method should not have final modifier if destination class is interface.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/PullUp/test47/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/PullUp/test47/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/PullUp/test48/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/PullUp/test48/out/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/PullUpTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java