RFR: 8273401: Remove JarIndex support in URLClassPath

Lance Andersen lancea at openjdk.java.net
Tue Sep 7 16:33:37 UTC 2021

On Tue, 7 Sep 2021 07:03:20 GMT, Alan Bateman <alanb at 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.



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

More information about the core-libs-dev mailing list