Community
Participate
Working Groups
Step 1: Create the class. package p1; public class A { private long n( int a){ return 38; } public long test(){ return n(2); } } package p2; import p1.*; public class B extends A { protected long k( int a){ return 58; } } package p2; import p1.*; public class C extends A { } Step 2: apply the rename method to rename n to k. Eclipse will show a warning: Type in its hierarchy defines a method with the same number of parameters and same parameter type names. In spite of the warning, the behavior of this program would be preserved after the transformation. This precondition seems to be too strong.
Moving to JDT/UI
*** Bug 399182 has been marked as a duplicate of this bug. ***
I20130122-0800 doesn't show a message in this case.
(In reply to Markus Keller from comment #3) > I20130122-0800 doesn't show a message in this case. I have tried to apply this same refactoring using Eclipse 4.6 and it still shows this message.