Bug 391710 - [Rename type] Could use qualified type name to resolve name conflicts
Summary: [Rename type] Could use qualified type name to resolve name conflicts
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 15:05 EDT by Gustavo Soares CLA
Modified: 2013-01-28 08:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***