RFR: 8302819: Remove JAR Index [v2]
Eirik Bjorsnos
duke at openjdk.org
Thu Mar 30 14:22:38 UTC 2023
On Thu, 30 Mar 2023 13:40:09 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> I think the warning should also communicate that the JAR index is also ignored, maybe something like this:
I added the following property to `jar.properties`:
warn.index.is.ignored=\
The JAR index (META-INF/INDEX.LIST) is ignored at run-time since JDK 18
Then I chose to update the existing property `warn.flag.is.deprecated` from the following:
warn.flag.is.deprecated=\
Warning: The {0} option is deprecated, and is planned for removal in a future JDK release\n
to the following:
warn.flag.is.deprecated=\
Warning: The {0} option is deprecated, and may be ignored or removed in a future release\n
This gives the following warning on use:
% build/macosx-x86_64-server-release/images/jdk/bin/jar -i hello.zip
The JAR index (META-INF/INDEX.LIST) is ignored at run-time since JDK 18
Warning: The --generate-index/-i option is deprecated, and may be ignored or removed in a future release
Is this repurposing of `warn.flag.is.deprecated` considered ok?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13158#issuecomment-1490393173
More information about the core-libs-dev
mailing list