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

Documentation mistake in Process::getErrorStream and getInputStream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • core-libs
    • None
    • b18

      https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/lang/Process.html#getInputStream()

      The API note for Process::getInputStream reads:

      "Use getInputStream and inputReader with extreme care.The BufferedReader may have buffered input from the input stream."

      Which makes sense. However, the same note exists for Process::getErrorStream, where I think the note should refer to getErrorStream and errorReader instead.

      In addition, the link tags to inputReader point to the private variable and causes them not to render. They should point to the method.

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

              Created:
              Updated:
              Resolved: