On Wed, 18 Jun 2025 20:16:18 GMT, Roger Riggs <rri...@openjdk.org> wrote:
> Improve the documentation of Process use of system resources. > > Describe the implementation closing streams when no longer referenced. > Clarify the interactions between inputStream and inputReader and errorStream > and errorReader. > Add advice and example using try-with-resources to open and close streams. > Recommend closing streams when no longer in use. This pull request has now been integrated. Changeset: afb4a1be Author: Roger Riggs <rri...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/afb4a1be9e5dc2a9c0d812f5a36717c9f82241a9 Stats: 185 lines in 2 files changed: 99 ins; 7 del; 79 mod 8354872: Clarify java.lang.Process resource cleanup Reviewed-by: jpai ------------- PR: https://git.openjdk.org/jdk/pull/25884