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

(process) Process.info description is inaccurate

XMLWordPrintable

    • b93

      java.lang.Process.info() method incorrectly describes the methods of the Info interface as returning null; they return empty Optionals when information is missing.
      "An {@link ProcessHandle.Info} instance has various accessor methods
           * that return information about the process, if the process is alive and
           * the information is available, otherwise {@code null} is returned."

      The phrase ", otherwise {@code null} is returned" should be removed.
      It will then match the description in ProcessHandle.info().

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

              Created:
              Updated:
              Resolved: