Regression test test/java/util/zip/StreamIOAfterClose.java failing with
jdk1.2fcs-C build on solaris.
java StreamIOAfterClose
java.io.IOException: Stream closed
Exception in thread "main" java.lang.RuntimeException: Stream closed
at java.io.ByteArrayOutputStream.ensureOpen(Compiled Code)
at java.io.ByteArrayOutputStream.write(Compiled Code)
at java.util.zip.DeflaterOutputStream.deflate(Compiled Code)
at java.util.zip.ZipOutputStream.closeEntry(Compiled Code)
at java.util.zip.ZipOutputStream.finish(Compiled Code)
at java.util.zip.ZipOutputStream.close(Compiled Code)
at StreamIOAfterClose.testWrite(Compiled Code)
at StreamIOAfterClose.main(Compiled Code)
But after looking at the test , it seems to me that should fail.
This seems like a negetive test where fail = pass. need to modify regression test.
jdk1.2fcs-C build on solaris.
java StreamIOAfterClose
java.io.IOException: Stream closed
Exception in thread "main" java.lang.RuntimeException: Stream closed
at java.io.ByteArrayOutputStream.ensureOpen(Compiled Code)
at java.io.ByteArrayOutputStream.write(Compiled Code)
at java.util.zip.DeflaterOutputStream.deflate(Compiled Code)
at java.util.zip.ZipOutputStream.closeEntry(Compiled Code)
at java.util.zip.ZipOutputStream.finish(Compiled Code)
at java.util.zip.ZipOutputStream.close(Compiled Code)
at StreamIOAfterClose.testWrite(Compiled Code)
at StreamIOAfterClose.main(Compiled Code)
But after looking at the test , it seems to me that should fail.
This seems like a negetive test where fail = pass. need to modify regression test.
- relates to
-
JDK-4110528 method java.util.zip.GZIPInputStream.read permits reading if closed.
- Closed