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

java/util/zip/CopyZipFile.java failed with system zlib

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17, 21, 25
    • core-libs

      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.

            jpai Jaikiran Pai
            jjiang John Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: