netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Bug: Renaming the name of a named method results in a change in the method's properties

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,code before refactoring, the "methodToBeRenamed()" method in the "ParentClass" is independent of the method in the "SubClass" class; the method in the "SubClass" class becomes inherited from the "ParentClass" class.

class ParentClass{ void methodToBeRenamed(){} } class SubClass extends ParentClass{ void method(){} }

Language / Project Type / NetBeans Component

No response

How to reproduce

When the "methodToBeRenamed()" method is selected for the rename method refactoring,code before refactoring, the "methodToBeRenamed()" method in the "ParentClass" is independent of the method in the "SubClass" class; the method in the "SubClass" class becomes inherited from the "ParentClass" class.

class ParentClass{ void methodToBeRenamed(){} } class SubClass extends ParentClass{ void method(){} }

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows11

JDK

20

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

assdfsdafasfa avatar Oct 08 '24 12:10 assdfsdafasfa