Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356311

Clarify java.lang.Process resource cleanup

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • core-libs
    • None
    • minimal
    • The documentation is updated to recommend and describe how to close and release resources. There are no behavioral changes.
    • Java API
    • SE

      Summary

      The system resources used to manage and communicate with processes are limited, when no longer needed, the resources should be closed and released.

      Problem

      The java.lang.Process api and implementation documentation do not describe the responsibilities for closing and releasing the resources used by streams and processes.

      Solution

      The Process documentation should recommend how to close and release resources used by Process and the streams used to communicate with the process. It should describe the implementation fallback to prevent resource leaks if the streams are not closed and are no longer referenced.

      Specification

      TBD: Javadoc updates to Process and its methods for input, error, and output streams and input, error, and output readers and writers.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: