Community
Participate
Working Groups
Build Identifier: 20110615-0604 Renaming a class may lead to a compilation error: The method is undefined for the type Reproducible: Always Steps to Reproduce: 1. Create the classes: package p2; import p1.*; public class C extends A { protected long k( long a){ return 1; } public long k( int a){ return 0; } } package p1; public class B extends A { } package p1; import p2.*; public class A { public long m(){ return new C().k(2); } } 2. Apply the rename class refactoring to rename B to C package p1; import p2.*; public class A { public long m(){ return new C().k(2); } } package p1; public class C extends A { } package p2; import p1.*; public class C extends A { protected long k( long a){ return 1; } public long k( int a){ return 0; } } 3. The resulting code does not compile: The method k(int) is undefined for the type C
Same underlying problem as bug 356677. *** This bug has been marked as a duplicate of bug 356677 ***