I am using org.eclipse.jdt.core.IMethod
and calling method.rename(newName, true, new NullProgressMonitor());
on an interface.
It refactors interface method, but fails to refactor its implementation classes-methods.
For example:
interface Animal {
void eat(); // refactors here
}
class Dog implements Animal {
// fails to refactor this
void eat() {
}
}
Kindly help!
It looks correct.
The code should look for implementations of this method (through the Java Search Engine API) and accordingly rename the overriding methods as part of that same refactoring.