netbeans
netbeans copied to clipboard
Bug:Rename the method's new name to 'equals'
Apache NetBeans version
Apache NetBeans 23
What happened
When the "methodToBeRenamed" method is selected for the rename method refactoring, it causes a refactoring bug because the new method name being renamed conflicts with the method of existing APIs , resulting in a syntax error.
interface I{ void methodToBeRenamed(Object o) throws Exception; }
Language / Project Type / NetBeans Component
No response
How to reproduce
When the "methodToBeRenamed" method is selected for the rename method refactoring, it causes a refactoring bug because the new method name being renamed conflicts with the method of existing APIs , resulting in a syntax error.
interface I{ void methodToBeRenamed(Object o) throws Exception; }
Did this work correctly in an earlier version?
Apache NetBeans 23
Operating System
Windows11
JDK
20
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No