Project: JDT
Bug 151683 [extract superclass] Extract Superclass without 'Use the extracted class' removes code
Reported: 2006-07-25 08:28:32 | Status: verified fixed

I20060718-0800 Given: package test; public class E1 { private static void foo() {} public void bar() {foo();} } 1. Select 'E1' 2. Refactor>Extract Superclass 3. Type in 'Super' 4. Deselect 'Use Superclass where possible' 5. Select 'foo' 6. Finish Is: 'foo' is removed from E1 but not added to Super Should: be added to Super and private changed to protected

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractSupertype/testBug151683/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractSupertype/testBug151683/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractSupertype/testBug151683/out/Z.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractSupertypeTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java