assdfsdafasfa opened a new issue, #8306:
URL: https://github.com/apache/netbeans/issues/8306
### Apache NetBeans version
Apache NetBeans 25
### What happened
Executing pull down refactoring causes changes in code behavior.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Select f(), select Pull down refactoring, which changes the method call
relationship. Before refactoring, call the m() method of class A, and after
refactoring, call the m() method of class C.
Code before refactoring:
```java
class A {
void m(Object m) {
System.out.println("A");
}
}
class B extends A {
void k(String m) {
System.out.println("B");
}
// pull down 'f()'
void f() {
m("1");
}
}
class C extends B{
void m(String m) {
System.out.println("B");
}
}
```
Code after refactoring:
```java
class A {
void m(Object m) {
System.out.println("A");
}
}
class B extends A {
void k(String m) {
System.out.println("B");
}
}
class C extends B{
void m(String m) {
System.out.println("B");
}
// pull down 'f()'
void f() {
m("1");
}
}
```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
windows11
### JDK
17
### Apache NetBeans packaging
Apache NetBeans platform
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists