Community
Participate
Working Groups
Build Identifier: 20090920-1017 Pushing down a field that hides other field may changes program behavior Reproducible: Always Steps to Reproduce: 1. Create classes: public class A { public int k = 10; } public class B extends A { public int k = 20; } public class C extends B { public int test() { return super.k; } } 2. The method test returns 20. 3. Apply the push down method refactoring to B.k public class A { public int k = 10; } public class B extends A { } public class C extends B { public int k = 20; public int test() { return super.k; } } 4. After the refactoring, the method test returns 10 instead of 20. The refactoring changes program behavior.
Similar to bug 313045 but the other way around.
Not a regression.
*** Bug 235118 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Still an issue in 4.10.
*** Bug 531946 has been marked as a duplicate of this bug. ***
This is still an issue in 4.19M1