Community
Participate
Working Groups
Applying Push Down Field refactoring to move B.field to class C, the transformation yields an issue. Eclipse should update all calls to the refactored field. The method C.m() was not updated after applying the refactoring. The return statement should be "return field" and not "return super.field". --- Before Refactoring: public interface A { public int field = 11; } public class B implements A { protected int field = 10; } public class C extends B { public long m(){ return super.field; } } --- Resulting Program: public interface A { public int field = 11; } public class B implements A {} public class C extends B { protected int field = 10; public long m(){ return super.field; } }
*** This bug has been marked as a duplicate of bug 313043 ***