RFR: 8336691: Test LongArgTest.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Utils

David Holmes dholmes at openjdk.org
Thu Jul 18 05:45:30 UTC 2024


On Thu, 18 Jul 2024 05:37:31 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Hi all,
>> The testcase `serviceability/attach/LongArgTest.java` intermittent fails `java.lang.NoClassDefFoundError: jdk/test/lib/Utils`. Jtreg doesn't automatically compile `jdk/test/lib/Utils.class` and `jdk/test/lib/apps/LingeredApp.class` etc.. Maybe it's a jtreg  framework bug.
>> I think it's necessory to compile `jdk.test.lib.Utils` and `jdk.test.lib.apps.LingeredApp` explicitly.
>> Only change the testcase, the change has been verified, no risk.
>
> Grepping over all tests I see 666 that import jdk.test.lib.Utils but only 60 actually build it. Looking just at hotspot we have 413 imports and only 1 build! For jdk.test.lib.apps.LingeredApp it is 91 versus 4, in hotspot.
> 
> I wonder if this is the jtreg issue where compile-on-demand classes are being put in the wrong directory depending on which test in a run first needs it?

> @dholmes-ora and @alexmenkov should comment in this. Also see my comments that I just added to the CR.

Thanks for the link to https://bugs.openjdk.org/browse/CODETOOLS-7902847

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

PR Comment: https://git.openjdk.org/jdk/pull/20228#issuecomment-2235550005


More information about the serviceability-dev mailing list