RFR: 8336691: Test LongArgTest.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Utils [v2]
Alex Menkov
amenkov at openjdk.org
Thu Jul 18 20:23:34 UTC 2024
On Thu, 18 Jul 2024 07:30:47 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.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>
> delete @build LongArgTest
This `@build` tag can solve this particular failure, but can cause similar failures of other tests.
I think we need to find out what other test is involved here (I'll add a comment to the CR) and then decide how to fix the issue
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20228#issuecomment-2237492331
More information about the serviceability-dev
mailing list