netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Bug:Rename the method's new name to 'equals'

Open assdfsdafasfa opened this issue 1 year ago • 0 comments

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

assdfsdafasfa avatar Oct 08 '24 12:10 assdfsdafasfa