PetrMiksik opened a new issue, #9294:
URL: https://github.com/apache/netbeans/issues/9294
### Apache NetBeans version
Apache NetBeans 29
### What happened
Overriding method with synchronized modifier in subclass using code
completion feature (Ctrl + Space) generates wrong code. Instead of
"synchronized" keyword, the "synchronized_or_acc_super" is generated.
### Language / Project Type / NetBeans Component
Java Application
### How to reproduce
private static class C1 {
synchronized void m1() {
}
}
private static class C2 extends C1 {
@Override
synchronized_or_acc_super void m1() {
super.m1(); // Generated from
nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/OverriddenMethodBody
}
}
### Did this work correctly in an earlier version?
Apache NetBeans 28
### Operating System
Ubuntu 24.04
### JDK
25.0.2; OpenJDK 64-Bit Server VM 25.0.2+10-LTS
### Apache NetBeans packaging
Community provided installer
### 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