apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 840 forks source link

Bug: A syntax error occurred in renaming a method in the interface #7576

Open DongChunHao opened 1 month ago

DongChunHao commented 1 month ago

Apache NetBeans version

Apache NetBeans 22

What happened

A syntax error occurred in renaming a method in the interface.

Language / Project Type / NetBeans Component

No response

How to reproduce

selecting 'methodToRename' in interface I Renaming 'methodToRename' to 'equals'

Because the new method name 'equals' is the method in the existing API, it causes a compilation error when applied to refactor the new name image

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows11

JDK

20

Apache NetBeans packaging

Other

Anything else

No response

Are you willing to submit a pull request?

No