RFR [8023431] Test java/util/zip/GZIP/GZIPInZip.java failed

Ivan Gerasimov ivan.gerasimov at oracle.com
Mon Oct 14 09:51:29 UTC 2013


Hello all!

Would you please help review a fix for the intermittently failing regtest?
http://bugs.sun.com/view_bug.do?bug_id=8023431


The reasons of the failures were non closed PipedInput/OutputStreams.
Thus Read/write dead end were reported.

The fix is to use try-with-resource for appropriate closing the streams.
Here is the webrev:
http://cr.openjdk.java.net/~igerasim/8023431/0/webrev/

In addition to the fix I added a small enhancement to the test itself.
Now it also tests that the ZipStream isn't closed in the case of 
malformed nested GZiped entries.

Sincerely yours,
Ivan Gerasimov




More information about the core-libs-dev mailing list