Bug 473924

Summary: [refactoring] Remove Method Parameter Refactoring results in compilation error
Product: [Eclipse Project] JDT Reporter: Melina Mongiovi <melmongiovi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, jjohnstn
Version: 4.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Melina Mongiovi CLA 2015-07-30 09:04:35 EDT
Removing the method parameter of A.m(int) results in compilation error.

Before Refactoring:

public abstract class A {
    public abstract void m(int a);
}
class B extends A {
    public void m(int a) {}    
}

abstract class C extends A {
    public int m() {
        return 10;
    }    
}

Resulting Program:

public abstract class A {
    public abstract void m();
}
class B extends A {
    public void m() {}    
}

abstract class C extends A {
    public int m() {
        return 10;
    }    
}
Comment 1 Eclipse Genie CLA 2018-12-06 12:44:15 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Dani Megert CLA 2018-12-10 12:14:24 EST
Still an issue using 4.10.
Comment 3 Eclipse Genie CLA 2020-11-30 05:29:45 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Jeff Johnston CLA 2020-11-30 18:14:57 EST
Problem still exists in 2020-12 RC1
Comment 5 Eclipse Genie CLA 2023-02-05 17:14:03 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.