Project: JDT
Bug 24914 inline method - breaks code when inlining into overridden methods [refactoring]
Reported: 2002-10-17 06:09:09 | Status: resolved fixed

I-20021016 linux-gtk: public class Boo { private static class A { void foo() { } } private static class B extends A { void foo() { super.foo(); } } } Issue 1: 1. select foo in "super.foo" 2. inline method 3. get a dialog saying "No method invocation or declaration selected." Issue 2: 1. select foo declration in class A 2. inline method 3. press finish 4. observe that the method foo() from A is gone, leaving class B with compile errors

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/CallInliner.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InvocationAnalyzer.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/Invocations.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/RefactoringWizard.java