> 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. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/25884/files - new: https://git.openjdk.org/jdk/pull/25884/files/868c93aa..eafd5611 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=25884&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25884&range=02-03 Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/25884.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25884/head:pull/25884 PR: https://git.openjdk.org/jdk/pull/25884