On Thu, 16 Sep 2021 01:29:12 GMT, wxiang
<[email protected]> wrote:
>> There is a bug for URLClassPath.findResources with JarIndex.
>> Currently, there was agreement on dropping the support from the
>> URLClassLoader implementation but it was suggested that it should be
>> disabled for a release or two before the code is removed.
>> A system property can be used to re-enable JarIndex support in URLClassPath.
>>
>> The PR includes:
>> Disable JarIndex support in URLClassPath by default.
>> Add system property jdk.net.URLClassPath.enableJarIndex to re-enable
>> JarIndex support.
>
> wxiang has updated the pull request incrementally with one additional commit
> since the last revision:
>
> add isEmpty check
I have changed
ENABLE_JAR_INDEX = p != null ? p.equals("true") : false;
to
ENABLE_JAR_INDEX = p != null ? p.equals("true") || p.isEmpty() : false;
Furthemore, in order to maintain consistency in URLClassPath, the property
name is "jdk.net.URLClassPath.enableJarIndex" .
-------------
PR: https://git.openjdk.java.net/jdk/pull/5524