[Pull Down Method Refactoring Bug] Pull down method refactoring leads to changes in code calling relationships #7800
Labels
Java
[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
kind:bug
Bug report or fix
needs:triage
Requires attention from one of the committers
Apache NetBeans version
Apache NetBeans 23
What happened
When test() is selected to perform pull down refactoring into class A, before refactoring, test() method calls method() of class ParentClass, after refactoring, test() method calls method() of class SubClass, resulting in a change in code behavior.
Code before refactoring
Language / Project Type / NetBeans Component
No response
How to reproduce
When test() is selected to perform pull down refactoring into class A, before refactoring, test() method calls method() of class ParentClass, after refactoring, test() method calls method() of class SubClass, resulting in a change in code behavior.
Code before refactoring
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows11
JDK
20
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Code after refactoring
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: