On Thu, 18 Jul 2024 01:49:54 GMT, SendaoYan <s...@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? ------------- PR Comment: https://git.openjdk.org/jdk/pull/20228#issuecomment-2235518097