RFR: 8336691: Test LongArgTest.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Utils
Jaikiran Pai
jpai at openjdk.org
Thu Jul 18 05:00:32 UTC 2024
On Thu, 18 Jul 2024 01:49:54 GMT, SendaoYan <syan 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.
test/hotspot/jtreg/serviceability/attach/LongArgTest.java line 30:
> 28: * @library /test/lib
> 29: * @modules jdk.attach/sun.tools.attach
> 30: * @build jdk.test.lib.Utils jdk.test.lib.apps.LingeredApp LongArgTest
Hello @sendaoYan, the test class `LongArgTest` isn't needed in the `@build` set.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20228#discussion_r1682116429
More information about the serviceability-dev
mailing list