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

java.lang.Runtime: exec() does not properly handle standard ouput

XMLWordPrintable

    • sparc
    • solaris_8

      The exec() method in java.lang.Runtime does not properly handle standar ouptput produced by the command. If a program uses the exec() to execute an UNIX command and uses the waitFor() method to wait for the command to finish execution, the whole application may freeze if the standard output produced by the command exceeds 10k. The attached source, compiled code and sample test data can prove the bug. To run the sample test case, type java run <file name> Example: test run test2

            kkladkosunw Konstantin Kladko (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: