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, whileJDK-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.
Duplicated entries in a jar file could lead to override desired content, while
jar have a --validate mode to check jar file consistency, we can also check if there are duplicate entries or inconsistent headers.
- relates to
-
JDK-8335912 Add an operation mode to the jar command when extracting to not overwriting existing files
-
- Closed
-
- links to
-
Review(master) openjdk/jdk/24430