RFR: 8302819: Remove JAR Index [v2]
Alan Bateman
alanb at openjdk.org
Thu Mar 30 13:43:29 UTC 2023
On Thu, 30 Mar 2023 11:16:14 GMT, Eirik Bjorsnos <duke at openjdk.org> wrote:
> We seem to have wiggled a bit on this issue, but I'm ok with including it.
I think we've converged on `jar -i` work as before but print a warning. For the purposes of the CSR and the release note then I think it would be better to have the complete story in one issue rather than some of the story in one issue the two issues needing to cross reference each other. So thanks for going with that.
>
> I have implemented the -i warning using the existing warnings strings already in place in `jar`. This means the following warning will be output:
>
> ```
> % build/macosx-x86_64-server-release/images/jdk/bin/jar --generate-index file.jar
> Warning: The -i option is deprecated, and is planned for removal in a future JDK release
> ```
I think the warning should also communicate that the JAR index is also ignored, maybe something like this:
The JAR index (META-INF/INDEX.LIST) is ignored at run-time since JDK 18.
The --generate-index/-i option is deprecated - it may be ignored or removed in a future release.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13158#issuecomment-1490325051
More information about the security-dev
mailing list