Project: JDT
Bug 149775 [extract superclass] extract superclass refactor can cause stack overflow in refactored code
Reported: 2006-07-05 22:00:12 | Status: verified fixed

If i have these 2 classes... public class ExistingSuper { void method() { // do something } } public class Subclass extends ExistingSuper { @Override void method() { super.method(); } } ...and I extract a superclass for 'SubClass' and select the method to be moved up to superclass then I get this... public class Extracted extends ExistingSuper { public Extracted() { super(); } @Override void method() { this.method(); } } ...which has super.method() replaced with this.method() which causes a stack overflow. It should remain as super.method().

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