RFR: 8360979: Remove use of Thread.stop in krb5/auto/KDC.java
Matthew Donovan
mdonovan at openjdk.org
Tue Jul 15 11:57:39 UTC 2025
On Thu, 10 Jul 2025 16:03:54 GMT, Mikhail Yankelevich <myankelevich at openjdk.org> wrote:
> Replaced Thread::stop to Thread::interrupt
test/jdk/sun/security/krb5/auto/KDC.java line 1649:
> 1647: } else {
> 1648: try {
> 1649: thread1.interrupt();
Each thread catches and ignores `Exception` which means the `interrupt()` call is ineffective. The threads either need to exit when they catch `Exception` or explicitly catch `InterruptedException` and exit when it is thrown.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26247#discussion_r2207279620
More information about the security-dev
mailing list