Community
Participate
Working Groups
Build Identifier: 20110615-0604 Renaming a class introduces a compilation error: The method from the type is not visible Reproducible: Always Steps to Reproduce: 1. Create the classes package p2; import p1.*; public class C extends A { public long k( long a){ return 0; } } package p1; public class B extends A { } package p1; import p2.*; public class A { private long k( int a){ return 1; } 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 { private long k( int a){ return 1; } public long m(){ return new C().k(2); } } package p1; public class C extends A { } package p2; import p1.*; public class C extends A { public long k( long a){ return 0; } } 3. The resulting program does not compile: The method k(long) from the type A is not visible
Same underlying problem as bug 356677. *** This bug has been marked as a duplicate of bug 356677 ***