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

Documentation mistake in Process::getErrorStream and getInputStream

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: