Community
Participate
Working Groups
Build Identifier: 20110615-0604 Moving a method to another class may change program behavior due to an overloading Reproducible: Always Steps to Reproduce: 1. Create the classes public class A { public B b; protected long k(int a) { return 2; } } public class B { private long k(long a) { return 1; } public long test() { return k(2); } } 2. Apply the move method refactoring to move k(int) to B public class A { public B b; } public class B { private long k(long a) { return 1; } public long test() { return k(2); } protected long k(int a) { return 2; } } 3. The transformation changes behavior. After the transformation, the test() method returns 2 instead of 1.
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.