Community
Participate
Working Groups
Build Identifier: 20100218-1602 Pulling up a method that contains a method call using qualified this may lead to compilation error: No enclosing instance of the type is accessible in scope Reproducible: Always Steps to Reproduce: 1. Create the classes: public class A { public long k(){ return 3; } } public class B extends A { public long m(){ return B.this.k(); } } 2. Apply the pull up refactoring to B.m(): public class A { public long k(){ return 3; } public long m(){ return B.this.k(); } } public class B extends A { } 3. After the refactoring, there is a compilation error: No enclosing instance of the type B is accessible in scope
*** This bug has been marked as a duplicate of bug 195005 ***