Integrated: 8252919: JDK built with --enable-cds=no fails with NoClassDefFoundError

Mandy Chung mchung at openjdk.java.net
Thu Sep 10 16:08:25 UTC 2020


On Wed, 9 Sep 2020 19:38:38 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> `jlink --generate-jli-classes` plugin should retain the original holder classes if the default_jli_trace.txt
> file does not exist.
> 
> Before JDK-8252725, `JavaLangInvokeAccess::generateXXXHolderClassesBytes` methods are invoked
> unconditionally and therefore the holder classes are "regenerated" when default_jli_trace.txt
> does not exist.  JDK-8252725 does not handle this case properly and results in an image missing
> the holder classes when the specified trace file does not exist.
> 
> The fix is very simple.  Retains the original holder classes when the file does not exist.

This pull request has now been integrated.

Changeset: 44a74dac
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/44a74dac
Stats:     47 lines in 2 files changed: 4 ins; 36 del; 7 mod

8252919: JDK built with --enable-cds=no fails with NoClassDefFoundError

Reviewed-by: minqi, sundar, alanb, redestad

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

PR: https://git.openjdk.java.net/jdk/pull/96


More information about the core-libs-dev mailing list