-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
master
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.
Also we will report invalid entry names added by JDK-8064601
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.
Also we will report invalid entry names added by JDK-8064601
- csr for
-
JDK-8355940 Improve jar --validate to detect duplicate or invalid entries
-
- Closed
-
- relates to
-
JDK-8335912 Add an operation mode to the jar command when extracting to not overwriting existing files
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/cd052c72
-
Review(master) openjdk/jdk/24430