You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/09 16:27:00 UTC

[GitHub] [netbeans] mbien opened a new issue, #4952: Remove Thread.stop() usage

mbien opened a new issue, #4952:
URL: https://github.com/apache/netbeans/issues/4952

   ### Body
   
   Those methods are deprecated since Java 1.2 and will throw UnsupportedOp exceptions from JDK 20+.
   
   https://inside.java/2022/11/09/quality-heads-up/
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer in the Apache NetBeans project.


-- 
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


[GitHub] [netbeans] mbien commented on issue #4952: Remove Thread.stop() usage

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1531221502

   @neilcsmith-net we can move this to NB19. This is something we can do incrementally. I couldn't find any showstoppers while testing on JDK 20 so far. Matthias did also replace some important implementations already.


-- 
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


[GitHub] [netbeans] neilcsmith-net commented on issue #4952: Remove Thread.stop() usage

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1531212162

   This is still open and marked high priority for NB18.  Where are we at with this?  Are there still things we need to address before 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


[GitHub] [netbeans] matthiasblaesing commented on issue #4952: Remove Thread.stop() usage

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1465773973

   Here you are:
   
   ```
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:122:
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:168:
   extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java:329:
   java/lib.jshell.agent/agentsrc/org/netbeans/lib/jshell/agent/AgentWorker.java:493:
   java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/protocol/ServerTest.java:263:
   webcommon/cordova/test/unit/src/org/netbeans/modules/web/clientproject/cordova/AndroidPlatformTest.java:208:
   nb/deadlock.detector/test/unit/src/org/netbeans/modules/deadlock/detector/DetectorTest.java:106:
   nb/deadlock.detector/test/unit/src/org/netbeans/modules/deadlock/detector/DetectorTest.java:107:
   platform/openide.nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java:192:
   platform/openide.nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java:193:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:82: warning:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:84: warning:
   platform/openide.util/test/unit/src/org/openide/util/RequestProcessor180386Test.java:479:
   platform/openide.util/test/unit/src/org/openide/util/RequestProcessor180386Test.java:504:
   platform/o.n.core/src/org/netbeans/core/CLIOptions2.java:113:
   ```
   
   This list is generated using jackpot like this:
   
   - grab jackpot from: https://dist.apache.org/repos/dist/release/netbeans/netbeans-jackpot/netbeans-jackpot-13.0/apache-netbeans-jackpot-13.0-bin.zip
   - run it as 
     ```
     PATH_TO_ZIP_CONTENTS/jackpot/jackpot --hint "Invoking Thread.stop()/suspend()/resume()" PATH_TO_NETBEANS
     ```


-- 
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


[GitHub] [netbeans] mbien commented on issue #4952: Remove Thread.stop() usage

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1474626914

   another bogeyman showed up:
   https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/ThreadGroup.html#stop()
   will throw UOEs too.
   
   https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/ThreadGroup.html#destroy()
   is now a no-op.
   
   Tested NB on JDK 20 a bit and things did work pretty good already. Canceling background tasks did also work, resetting JShell sessions worked too.


-- 
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


[GitHub] [netbeans] mbien commented on issue #4952: Remove Thread.stop() usage

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1467210008

   awesome, thanks. This doesn't look that bad anymore thanks to your work. If we remove all tests from that list, we get this:
   ```
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:122:
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:168:
   extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java:329:
   java/lib.jshell.agent/agentsrc/org/netbeans/lib/jshell/agent/AgentWorker.java:493:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:82: warning:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:84: warning:
   platform/o.n.core/src/org/netbeans/core/CLIOptions2.java:113:
   ```
   
   [`BridgeImpl`](https://github.com/apache/netbeans/blob/34f1b48f8b515eb83755599d502bc6d5918680ce/extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java#L329)uses stop as fallback, we could probably simply catch UOE there or guard against JDK 20+.
   [`SecMan`](https://github.com/apache/netbeans/blob/34f1b48f8b515eb83755599d502bc6d5918680ce/platform/core.execution/src/org/netbeans/core/execution/SecMan.java#L30) is full with deprecated code since SecurityManager itself is deprecated. This will be harder to solve.
   [`AgentWorker`](https://github.com/apache/netbeans/blob/34f1b48f8b515eb83755599d502bc6d5918680ce/java/lib.jshell.agent/agentsrc/org/netbeans/lib/jshell/agent/AgentWorker.java#L493) for jshell might also cause problems, it should probably interrupt and pray.
   [`SLIOptions2`](https://github.com/apache/netbeans/blob/34f1b48f8b515eb83755599d502bc6d5918680ce/platform/o.n.core/src/org/netbeans/core/CLIOptions2.java#L113) uses stop too as last resort.


-- 
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


[GitHub] [netbeans] mbien commented on issue #4952: Remove Thread.stop() usage

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1465677746

   @matthiasblaesing could you generate a new list so that we can see what is left to do? (or even better share the script which runs jackpot on all projects :))


-- 
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


[GitHub] [netbeans] matthiasblaesing commented on issue #4952: Remove Thread.stop() usage

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1426164223

   I asked `jackpot` for help and it answered:
   
   ```
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:122:
   nbi/engine/src/org/netbeans/installer/downloader/dispatcher/impl/RoundRobinDispatcher.java:168:
   harness/o.n.insane/src/org/netbeans/insane/scanner/ScannerUtils.java:256:
   harness/o.n.insane/src/org/netbeans/insane/scanner/ScannerUtils.java:267:
   ide/httpserver/src/org/netbeans/modules/httpserver/HttpServerModule.java:84:
   ide/httpserver/src/org/netbeans/modules/httpserver/HttpServerModule.java:151:
   ide/httpserver/src/org/netbeans/modules/httpserver/HttpServerModule.java:157:
   ide/extbrowser/test/ExtBrowser/qa-functional/src/org/netbeans/test/gui/web/util/HttpRequestWaitable.java:117:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:78:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:112:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:147:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:181:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:217:
   ide/editor.search/test/unit/src/org/netbeans/modules/editor/search/EditorFindSupportTest.java:253:
   extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java:329:
   java/lib.jshell.agent/agentsrc/org/netbeans/lib/jshell/agent/AgentWorker.java:493:
   java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/protocol/ServerTest.java:263:
   webcommon/cordova/test/unit/src/org/netbeans/modules/web/clientproject/cordova/AndroidPlatformTest.java:208:
   nb/deadlock.detector/test/unit/src/org/netbeans/modules/deadlock/detector/DetectorTest.java:106:
   nb/deadlock.detector/test/unit/src/org/netbeans/modules/deadlock/detector/DetectorTest.java:107:
   platform/openide.nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java:192:
   platform/openide.nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java:193:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:82:
   platform/core.execution/src/org/netbeans/core/execution/SecMan.java:84:
   platform/openide.util/test/unit/src/org/openide/util/RequestProcessor180386Test.java:479:
   platform/openide.util/test/unit/src/org/openide/util/RequestProcessor180386Test.java:504:
   platform/o.n.core/src/org/netbeans/core/CLIOptions2.java:113:
   ```


-- 
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


[GitHub] [netbeans] BradWalker commented on issue #4952: Remove Thread.stop() usage

Posted by GitBox <gi...@apache.org>.
BradWalker commented on issue #4952:
URL: https://github.com/apache/netbeans/issues/4952#issuecomment-1309186173

   It is for issues like this, that I've been working on trying to clean up "old code". Because eventually it is going to bite us in a major way..


-- 
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