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

Yumin Qi minqi at openjdk.java.net
Wed Sep 9 21:59:07 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.

Looks good!

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

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


More information about the core-libs-dev mailing list