RFR: 8284616: Implement workaround for CODETOOLS-7901986 in serviceability/jvmti/RedefineClasses
Alex Menkov
amenkov at openjdk.java.net
Sat Apr 9 00:33:39 UTC 2022
On Fri, 8 Apr 2022 22:15:21 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> The tests serviceability/jvmti/RedefineClasses start failing in loom-repo with CNFE like "java.lang.NoClassDefFoundError: jdk/test/lib/compiler/InMemoryJavaCompiler"
>
> It is not a loom specific bug, it might happen in jdk/jdk also.
>
> The workaround is to build some classes explicitly. The fix was implemented in repo-loom in Nov 2021 and there was no such failure after the fix in the loom repo.
>
> Also fix inlcudes some text refactoring to make push from loom smaller.
I suppose you mean NoClassDefFoundError caused by ClassNotFoundException.
As far as I got recently working on similar NoClassDefFoundError issue explicitly building library is not a good idea (JTReg recommends build dependent code, but this should be done by all tests, otherwise it can cause failures of other tests).
And some time ago a lot of such explicit build actions were removed from tests.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8170
More information about the serviceability-dev
mailing list