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

(process) ProcessBuilder.redirectErrorStream property has wrong description in API doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7
    • core-libs
    • None

      FULL PRODUCT VERSION :
      http://docs.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html

      ADDITIONAL OS VERSION INFORMATION :
      not required. Its a API documentation bug.

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Ref: http://docs.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html
      a redirectErrorStream property. Initially, this property is false, meaning that the standard output and error output of a subprocess are sent to two separate streams, which can be accessed using the Process.getInputStream() and Process.getErrorStream() methods

      In this statement, I suppose you mean to say Process.getOutputStream.

      A DESCRIPTION OF THE PROBLEM :
      Ref: http://docs.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html
      a redirectErrorStream property. Initially, this property is false, meaning that the standard output and error output of a subprocess are sent to two separate streams, which can be accessed using the Process.getInputStream() and Process.getErrorStream() methods. If the value is set to true, the standard error is merged with the standard output. This makes it easier to correlate error messages with the corresponding output. In this case, the merged data can be read from the stream returned by Process.getInputStream(), while reading from the stream returned by Process.getErrorStream() will get an immediate end of file.

      In this statement, I suppose you mean to say Process.getOutputStream.

      REGRESSION. Last worked in version 6u45

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Ref: http://docs.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In this statement, I suppose you mean to say Process.getOutputStream.
      ACTUAL -
      Process.getInputStream() has to be replaced with Process.getOutputStream.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      ignore the doc err

            uta Alexey Utkin (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: