RFR: 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning [v2]

Alan Bateman alanb at openjdk.org
Thu Mar 2 17:43:56 UTC 2023


On Thu, 2 Mar 2023 17:39:10 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

test/lib/jdk/test/lib/process/ProcessTools.java line 35:

> 33: import java.io.OutputStream;
> 34: import java.io.PrintStream;
> 35: import java.lang.Thread.State;

This is no longer needed.

-------------

PR: https://git.openjdk.org/jdk/pull/12827


More information about the core-libs-dev mailing list