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

Speed up Zip64SizeTest using a small ZIP64 file

XMLWordPrintable

    • b10
    • generic
    • generic

        Zip64SizeTest verifies that ZipFile correctly reads the 'uncompressed size' field of a 5GB entry using the CEN's Zip64 extra field. The problem tested is that ZipEntry.setExtra0 would incorrectly assume that both 'compressed size' and 'uncompressed size' was required, skipping an 8-byte field as invalid.

        The writing of the 5GB file consumes a lot of disk space and takes > 30 seconds to run. This has caused some builds to fail, see JDK-8259866.

        The test could benefit from a rewrite to using a small-sized Zip64 file.

              eirbjo Eirik Bjørsnøs
              eirbjo Eirik Bjørsnøs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: