RFR: 8360979: Remove use of Thread.stop in krb5/auto/KDC.java [v2]
Mikhail Yankelevich
myankelevich at openjdk.org
Wed Sep 24 11:57:40 UTC 2025
On Mon, 22 Sep 2025 15:46:26 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> Thanks for fixing this. The `terminate` method is only called once when the KDC has its own sub-process. In that case, since the threads are daemons there is really no need to interrupt them. The fix looks good but I don't know how effective it is if a test really needs to start a KDC, terminate it, and then start it on the same port.
This pr just replaces the thread.stop with the same functionality without changing the logic of the test. Do you propose reworking test and removing the interruption all together?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26247#issuecomment-3328048329
More information about the security-dev
mailing list