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

Bug 473926

Summary: Change Method Signature Refactoring results in compilation error
Product: [Eclipse Project] JDT Reporter: Melina Mongiovi <melmongiovi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Melina Mongiovi CLA 2015-07-30 09:08:13 EDT
Changing the return type of method A.m to "int" results in compilation error.

Before Refactoring:

public interface A {
    public abstract void m();
}
class B implements A{
    A a;
    public void m() {}
}


Resulting Program:

public interface A {
    public abstract int m();
}
class B implements A{
    A a;
    public int m() {}
}
Comment 1 Noopur Gupta CLA 2015-08-05 04:42:29 EDT

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