JDK-8271598 : CDS classlist file should support uber JARs
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 18
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2021-08-02
  • Updated: 2022-07-01
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Some apps are packaged in a "Uber JAR"  that itself contains other JAR files. For example: https://github.com/iklam/cds-example/blob/e70b80f4f74d2fa45171d7011e44b379dc48656a/Makefile

Some classes are loaded by custom loaders from locations like:

jar:file:/jdk2/cds-example/target/cds-example-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/spring-core-5.3.6.jar!/

Currently, the CDS classlist format does not support such a location for archiving classes for custom loaders.