RFR: 8354872: Clarify java.lang.Process resource cleanup [v4]
Jaikiran Pai
jpai at openjdk.org
Wed Jul 2 14:52:06 UTC 2025
On Wed, 2 Jul 2025 14:49:01 GMT, Roger Riggs <rriggs at 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.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix links per review comments and snippet syntax in ProcessBuilder.Redirect.DISCARD.
Thank you Roger for these updates. This looks good to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25884#pullrequestreview-2979467778
More information about the core-libs-dev
mailing list