RFR: 8273401: Disable JarIndex support in URLClassPath [v2]
Daniel Fuchs
dfuchs at openjdk.java.net
Thu Sep 16 09:18:51 UTC 2021
On Wed, 15 Sep 2021 19:41:11 GMT, Lance Andersen <lancea at openjdk.org> wrote:
>> I would dislike it if `-Djdk.net.URLClassPath.enableJarIndex=false` meant true...
>
> I can appreciate that and that is a fair point. I guess where I was coming from was that the property is temporary and has to be explicitly specified so ignoring the value seemed worth raising/discussing.
>
> Assuming the current check is kept(which we should based on your input), it should probably be changed to ignore case.
Given that there is a precedence in this file:
p = props.getProperty("jdk.net.URLClassPath.showIgnoredClassPathEntries");
DEBUG_CP_URL_CHECK = p != null ? p.equals("true") || p.isEmpty() : false;
I would tend to let the new property follow the same pattern, especially since it's temporary.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5524
More information about the core-libs-dev
mailing list