RFR: 8364361: [process] java.lang.Process should implement Closeable [v17]
Roger Riggs
rriggs at openjdk.org
Fri Oct 17 14:39:51 UTC 2025
On Fri, 17 Oct 2025 11:32:22 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Incremental update to make it clear that if it is necessary
>> to forcibly destroy the process, close continues to wait for the
>> process to terminate.
>
> 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)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26649#discussion_r2440240876
More information about the core-libs-dev
mailing list