You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "PetrMiksik (via GitHub)" <gi...@apache.org> on 2026/03/24 11:18:07 UTC
[I] Synzhronized modifier in generated overriden method [netbeans]
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: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "PetrMiksik (via GitHub)" <gi...@apache.org>.
PetrMiksik commented on issue #9294:
URL: https://github.com/apache/netbeans/issues/9294#issuecomment-4140925284
Seems to be working. 👍 I haven't found any problems.
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #9294:
URL: https://github.com/apache/netbeans/issues/9294#issuecomment-4141845898
Thanks for reporting + testing. Fix was merged and will be part of next release.
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "PetrMiksik (via GitHub)" <gi...@apache.org>.
PetrMiksik commented on issue #9294:
URL: https://github.com/apache/netbeans/issues/9294#issuecomment-4133044633
Confirmed. It works as expected.
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #9294:
URL: https://github.com/apache/netbeans/issues/9294#issuecomment-4135959500
@PetrMiksik thanks for the test. While under review a better option turned up. Could you please give the new build a test? (direct link: https://github.com/apache/netbeans/suites/62164808650/artifacts/6125917850).
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #9294: Synzhronized modifier in generated overriden method
URL: https://github.com/apache/netbeans/issues/9294
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Synzhronized modifier in generated overriden method [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #9294:
URL: https://github.com/apache/netbeans/issues/9294#issuecomment-4132879893
@PetrMiksik I think I found the issue, please test the dev build available from the checks page of PR #9296 (direct link: https://github.com/apache/netbeans/suites/62054582129/artifacts/6113064284). Thank you!
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists