-
Bug
-
Resolution: Unresolved
-
P4
-
17, 21, 25
-
linux
Build JDK with option --with-zlib=system, and then run test java/util/zip/CopyZipFile.java and met the below failure,
STARTED CopyZipFile::copyFromZipFileToZipOutputStream 'copyFromZipFileToZipOutputStream()'
SUCCESSFUL CopyZipFile::copyFromZipFileToZipOutputStream 'copyFromZipFileToZipOutputStream()' [40ms]
STARTED CopyZipFile::explicitCompressedSizeWithDifferentCompressionLevels 'explicitCompressedSizeWithDifferentCompressionLevels()'
org.opentest4j.AssertionFailedError: Expected java.util.zip.ZipException to be thrown, but nothing was thrown.
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
at CopyZipFile.explicitCompressedSizeWithDifferentCompressionLevels(CopyZipFile.java:240)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
The system zlib version is 1.2.11 on Linux x86_64.
And it also failed with zlib 1.3.1.
STARTED CopyZipFile::copyFromZipFileToZipOutputStream 'copyFromZipFileToZipOutputStream()'
SUCCESSFUL CopyZipFile::copyFromZipFileToZipOutputStream 'copyFromZipFileToZipOutputStream()' [40ms]
STARTED CopyZipFile::explicitCompressedSizeWithDifferentCompressionLevels 'explicitCompressedSizeWithDifferentCompressionLevels()'
org.opentest4j.AssertionFailedError: Expected java.util.zip.ZipException to be thrown, but nothing was thrown.
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
at CopyZipFile.explicitCompressedSizeWithDifferentCompressionLevels(CopyZipFile.java:240)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
The system zlib version is 1.2.11 on Linux x86_64.
And it also failed with zlib 1.3.1.
- relates to
-
JDK-8253952 Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size
-
- Resolved
-
-
JDK-8321616 Retire binary test vectors in test/jdk/java/util/zip/ZipFile
-
- Resolved
-