| Summary: | Renaming a class leads to compilation error: The method from the type is not visible | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Gustavo Soares <gsoares> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r |
| Version: | 3.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Same underlying problem as bug 356677. *** This bug has been marked as a duplicate of bug 356677 *** |
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