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

Goetz Lindenmaier goetz at openjdk.org
Wed Jul 9 10:35:47 UTC 2025


On Wed, 2 Jul 2025 06:49:45 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.
>
> @iklam As a reviewer of the original change, could you please review this JDK 21 backport and its dependency #1834?

Hi @TimPushkin 
I would prefer to defer this to the January update.
It's a larger change, and then it has time to proof itself in 25 a bit.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1835#issuecomment-3052118173


More information about the jdk-updates-dev mailing list