RFR: 6957241: ClassLoader.getResources() returns only 1 instance when using jar indexing
wxiang
github.com+53162078+shiyuexw at openjdk.java.net
Sat Sep 4 01:56:50 UTC 2021
On Fri, 3 Sep 2021 10:48:01 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> > @AlanBateman Sure, I am interested in it.
>
> Great! I think there are several parts to this. The removal of the JAR index support from the URLClassLoader implementation, the `jar i` option, the JAR file spec, and the jar tool man page.
>
> It would be good to create a patch for the removal to see if there are any issues. There will probably need to be some discussion on what to do with the jar tool. I suspect we will need to keep the code that updates the index when updating a JAR file that has an existing index, this means keeping JarIndex and maybe moving it to the jdk.jartool module. We can change `jar i` to print a warning when the tool is called to generate an index. Don't worry about the JAR spec and man page for now.
I will first create the patch to remove JAR index support from the URLClassLoader implementation, the `jar i` option.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5316
More information about the core-libs-dev
mailing list