RFR: 8338686: App classpath mismatch if a jar from the Class-Path attribute is on the classpath [v2]

Calvin Cheung ccheung at openjdk.org
Fri Sep 13 15:40:17 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.

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  a simplier fix

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20697/files
  - new: https://git.openjdk.org/jdk/pull/20697/files/ca5e4f93..9a4e7046

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20697&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20697&range=00-01

  Stats: 71 lines in 4 files changed: 14 ins; 21 del; 36 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