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

ProcessBuilder API documentation typo

    XMLWordPrintable

Details

    • 9
    • b12
    • Not verified

    Description

      ADDITIONAL SYSTEM INFORMATION :
      Documentation error - affects all configurations.

      A DESCRIPTION OF THE PROBLEM :
      Bullet point #5 is in error. It currently reads:
      -----------------
      a destination for standard output and standard error. By default, the subprocess writes standard output and standard error to pipes. Java code can access these pipes via the input streams returned by Process.getOutputStream() and Process.getErrorStream(). However, standard output and standard error may be redirected to other destinations using redirectOutput and redirectError. In this case, Process.getInputStream() and/or Process.getErrorStream() will return a null input stream, for which:
      -----------------

      The error is a reference to ` Process.getOutputStream()` instead of ` Process.getInputStream()` (the last sentence of the bullet is correct).



      REGRESSION : Last worked in version 11.0.1

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Correct the javadoc comments in the source code

      ---------- BEGIN SOURCE ----------
      Javadoc can be seen at: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ProcessBuilder.html
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: