[jdk21u-dev] Integrated: 8315130: java.lang.IllegalAccessError when processing classlist to create CDS archive

Timofei Pushkin tpushkin at openjdk.org
Wed Oct 8 15:44:08 UTC 2025


On Tue, 27 May 2025 09:12:21 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

> Fixes a error which significantly complicates the use of static CDS in some applications with user-provided class loaders (workarounds require either manually editing the generated CDS classlist which is error-prone, or switching to dynamic CDS which has its own implications, or rewriting the application which is not always possible).
> 
> The conflicts were trivial: a few neighboring methods missing from this version and not directly related to the change.
> 
> The PR depends on #1833 and #1834 though it can be rewritten not to if needed.
> 
> Testing besides the CI (performed on macos/arm64): `runtime/cds`, a minimal reproducer app described in the original bug report.

This pull request has now been integrated.

Changeset: d2976226
Author:    Timofei Pushkin <tpushkin at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/d29762266330884a9e037b5744751690d773ab37
Stats:     694 lines in 13 files changed: 513 ins; 121 del; 60 mod

8315130: java.lang.IllegalAccessError when processing classlist to create CDS archive

Reviewed-by: iklam
Backport-of: 46a12e781edcbe9da7bd39eb9e101fc680053cef

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

PR: https://git.openjdk.org/jdk21u-dev/pull/1835


More information about the jdk-updates-dev mailing list