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

Detect duplicate entries in jar files with jar --validate

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • tools
    • None
    • jar

      While a jar file created with jar utility would not have duplicate entries, it is possible to produce a jar file using zip to have duplicate entries.

      Duplicated entries in a jar file could lead to override desired content, while JDK-8335912 add option to not override existing files, there should be a way to find out such "malformed" jar file for precaution.

      jar have a --validate mode to check jar file consistency, we can also check if there are duplicate entries or inconsistent headers.

            henryjen Henry Jen
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: