JDK-8273401 : Disable JarIndex Support In URLClassPath
  • Type: Enhancement
  • Component: core-libs
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-09-07
  • Updated: 2021-09-30
  • Resolved: 2021-09-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b17Fixed
Related Reports
CSR :  
Relates :  
Description
In JDK-6957241, it describes the bug with URLClassPath.findResources. 
With JarIndex, URLClassPath.findResources only returns 1 URL. 
There are some discussions about the issue in https://github.com/openjdk/jdk/pull/5316 and https://github.com/openjdk/jdk/pull/5383

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.

The JBS is to disable JarIndex support in URLClassPath.


Comments
Changeset: 7700b254 Author: seanwxiang <seanwxiang@tencent.com> Committer: Hui Shi <hshi@openjdk.org> Date: 2021-09-26 11:43:40 +0000 URL: https://git.openjdk.java.net/jdk/commit/7700b25460b9898060602396fed7bc590ba242b8
26-09-2021