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

SendaoYan syan at openjdk.org
Thu Jul 18 01:54:58 UTC 2024


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.

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

Commit messages:
 - 8336691: Test LongArgTest.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Utils

Changes: https://git.openjdk.org/jdk/pull/20228/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20228&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8336691
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20228.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20228/head:pull/20228

PR: https://git.openjdk.org/jdk/pull/20228


More information about the serviceability-dev mailing list