RFR: 8364361: [process] java.lang.Process should implement Closeable [v14]
Alan Bateman
alanb at openjdk.org
Sat Oct 4 13:41:48 UTC 2025
On Sat, 4 Oct 2025 13:12:37 GMT, Jason Mehrens <duke at openjdk.org> wrote:
> Destroy/close not waiting on exit is correct behavior.
Yes, for destroy (and clearly documented in the case destroyForcibly). It's surprising and problematic for close. It creates a usability issue when using try-with-resources as the resource (the Process in this case) is not in scope after the t-w-r statement.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26649#discussion_r2403979329
More information about the core-libs-dev
mailing list