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

Cleanup SuppressWarnings in test lib and remove noisy traces in StreamPumper

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      There are a few SuppressWarnings statements in the test lib that could be cleaned up.

      Furthermore, in jdk/test/lib/process/StreamPumper.java, the printing of IOException stack traces when the input stream is simply closed causes quite some noise, e.g. dozens of
      java.io.IOException: Stream closed
      at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:169)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:335)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:245)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:285)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:344)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:830)
      in sun/tools/jcmd/TestProcessHelper which don't help.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clanger Christoph Langer
                Reporter:
                clanger Christoph Langer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: