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

(process) Process.info description is inaccurate

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b93

      Description

      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().

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: