JDK-8230854 : Cleanup SuppressWarnings in test lib and remove noisy traces in StreamPumper
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-09-11
  • Updated: 2019-09-26
  • Resolved: 2019-09-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b15Fixed
Related Reports
Relates :  
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.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/d003b3ef8b60 User: clanger Date: 2019-09-16 07:31:35 +0000
16-09-2019