On Thu, 30 Mar 2023 13:40:09 GMT, Alan Bateman <al...@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

Reply via email to