Project: JDT
Bug 12192 Rename method complains if the new name is overloaded [refactoring]
Reported: 2002-03-24 01:38:24 | Status: resolved fixed

Build: 20020321 Description: I have two methods that are supposed to have the same name: public Word computeSuccessorTo(Word word) public Word computerSuccessorTo(ILetterNode letterNode) I noticed that I had misspelt the name of the second method (there shouldn't be an r after compute) so I tried to use the rename function in the refactor menu. It complained that my class already had a method named computeSuccessorTo with the same number of parameters. The complaint is correct, but it isn't a problem since the arguments are of different types. If I ignore the errors and press Finish, the results are correct.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameMethodProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameNonVirtualMethodProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameVirtualMethodProcessor.java