RFR: 8338686: App classpath mismatch if a jar from the Class-Path attribute is on the classpath
Calvin Cheung
ccheung at openjdk.org
Fri Aug 23 22:25:39 UTC 2024
When a CDS archive is created with `-cp jarA:jarB` where the manifest of jarA contains a class-path attribute (e.g. `Class-Path: jarA1`). The following paths will be stored in the archive: jarA jarA1 jarB.
Currently, during runtime, if the user specifies `-cp jarA:jarA1:jarB`, it will result in class path mismatch and the archive will not be used. This patch addresses this issue to allow the user specifies jar files in the class-path attribute during runtime.
Testing: tiers 1 - 5.
-------------
Commit messages:
- 8338686: App classpath mismatch if a jar from the Class-Path attribute is on the classpath
Changes: https://git.openjdk.org/jdk/pull/20697/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20697&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8338686
Stats: 77 lines in 3 files changed: 66 ins; 0 del; 11 mod
Patch: https://git.openjdk.org/jdk/pull/20697.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20697/head:pull/20697
PR: https://git.openjdk.org/jdk/pull/20697
More information about the hotspot-runtime-dev
mailing list