Bug 391710

Summary: [Rename type] Could use qualified type name to resolve name conflicts
Product: [Eclipse Project] JDT Reporter: Gustavo Soares <gsoares>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Gustavo Soares CLA 2012-10-11 15:05:20 EDT
Eclipse rejects a rename class refactoring. The transformation could be performed with an additional change. 

Steps:

1. Create the classes:

package p1;
import p2.*;

public class A extends C {

}
package p1;

public class B extends A {

}
package p2;

public class C {

}

2. Apply the rename class to rename A to C. Eclipse will show an error: Name conflict with type p2.C. Eclipse could show a warning but also suggest the following transformation:

package p1;
import p2.*;

public class C extends p2.C {

}
package p1;

public class B extends A {

}
package p2;

public class C {

}
Comment 1 Markus Keller CLA 2013-01-28 08:40:29 EST
*** Bug 399183 has been marked as a duplicate of this bug. ***