RFR: 8364361: [process] java.lang.Process should implement Closeable [v17]
Alan Bateman
alanb at openjdk.org
Sun Oct 19 08:25:12 UTC 2025
On Fri, 17 Oct 2025 14:34:38 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Process.java line 247:
>>
>>> 245:
>>> 246: // Wait for the process to terminate, return true if the wait is interrupted.
>>> 247: private boolean waitForInterrupted() {
>>
>> tryWait that returns true when wait completes?
>
> ok, (But the code flow is only interested in the failure case not the success of wait)
awaitTermination might be better. It's all internal so don't have a strong opinion.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26649#discussion_r2442935669
More information about the core-libs-dev
mailing list