Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356163

Summary: [quick fix] Quick fix "Add parameter" ignores overrides
Product: [Eclipse Project] JDT Reporter: Aaron Digulla <digulla>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, Olivier_Thomann
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Aaron Digulla CLA 2011-08-30 03:27:37 EDT
Take this code:

class A {
    void foo() {
        bar();
    }
    void bar() {}
}

class B extends A {
    void bar() {}
}

Now change foo:

    void foo() {
        bar(1); // add new parameter
    }

Use the quick fix to add "int i" to "bar()" in A.

B.bar() should change as well.
Comment 1 Olivier Thomann CLA 2011-08-30 13:33:58 EDT
Moving to JDT/UI
Comment 2 Markus Keller CLA 2011-09-01 08:41:10 EDT

*** This bug has been marked as a duplicate of bug 160212 ***