-
Notifications
You must be signed in to change notification settings - Fork 917
Closed
Labels
kind:bugBug report or fixBug report or fixneeds:triageRequires attention from one of the committersRequires attention from one of the committers
Description
Apache NetBeans version
Apache NetBeans 21
What happened
When I select "callMethod()" and perform the move methodrefactoring, and i click "OK", a syntax error:
class TargetClass {
}
class SourceClass {
TargetClass target;
//move method
public void callMethod() {
anotherMethod();
}
private void anotherMethod() {
System.out.println("Another method in TargetClass");
}
}'
Expected result: Check for grammar errors before and after refactoring, and if so, provide error prompts
Language / Project Type / NetBeans Component
No response
How to reproduce
When I select "callMethod()" and perform the move methodrefactoring, and i click "OK", a syntax error:
class TargetClass {
}
class SourceClass {
TargetClass target;
//move method
public void callMethod() {
anotherMethod();
}
private void anotherMethod() {
System.out.println("Another method in TargetClass");
}
}'
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
Metadata
Metadata
Assignees
Labels
kind:bugBug report or fixBug report or fixneeds:triageRequires attention from one of the committersRequires attention from one of the committers
