On Tue, 7 Sep 2021 07:03:20 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> There is a bug for URLClassPath.findResources with JarIndex.
>> With some discussions about the bug, the current priority is to remove the 
>> JAR index support in URLClassPath, 
>> and don’t need to do anything to the jar tool in the short term, except just 
>> to move JarIndex to the jdk.jartool module. 
>> 
>> The PR includes:
>> 1. remove the JarIndex support in URLClassPath
>> 2. move JarIndex into  jdk.jartool module.
>
> src/java.base/share/classes/java/util/jar/JarFile.java line 220:
> 
>> 218:      * The index file name.
>> 219:      */
>> 220:     public static final String INDEX_NAME = "META-INF/INDEX.LIST";
> 
> Adding this as a public field means it becomes part of the API, so it 
> shouldn't be public here.

Agree

-------------

PR: https://git.openjdk.java.net/jdk/pull/5383

Reply via email to