RFR: 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning [v2]
David Holmes
dholmes at openjdk.org
Thu Mar 2 22:07:29 UTC 2023
On Thu, 2 Mar 2023 17:43:54 GMT, Afshin Zafari <duke at openjdk.org> wrote:
>> ### Description
>> The use of `ThreadDeath` is replaced with checking the exception be of type `Error` and the thread is `TERMINATED`.
>>
>>
>> ### Test
>> local and mach5 tier1
>
> Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
>
> 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning
The check for ThreadDeath was to basically ignore the uncaught exception from Thread.stop(). Such an exception is no longer possible so the check can just be deleted.
Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12827
More information about the core-libs-dev
mailing list