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

Retire test/jdk/java/util/zip/NoExtensionSignature.java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • None

      The stated purpose of the test 'test/jdk/java/util/zip/NoExtensionSignature.java' is to verify that ZipInputStream can read a data descriptor record without the recommended, but optional signature.

      The test uses a test vector which is a binary zip file checked into source control. The test does not describe how the test vector can be reproduced.

      The concern of the missing signature is also covered by the test 'DataDescriptorSignatureMissing'. This test has better documentation and contains code to reproduce the missing signature.

      To reduce duplicated tests, I suggest that we retire the NoExtensionSignature test. Before doing so, the binary test vector should be analyzed to see if there are unrelated aspects being 'accidentally' covered by the test.

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

              Created:
              Updated:
              Resolved: