Title: Rename field refactoring - issues with interfaces

Hi,

When attempting to rename a field in a class, IDEA offers to rename the getters and setters as well. If the class implements an interface that declares those methods, the renaming doesn't go far enough, the interface's signature is not changed (although the getters/setters show the "implements" link). After refactoring, the code doesn't compile anymore.

For EJB, even if the "has implementation" link is visible in the remote (or local) interface, the refactoring fails to include the method from the interface (and its usages, for that matter) in the list of changes for a refactoring similar to the one above. The code compiles, but it will break the deployment.

Regards,
Andrei

Reply via email to