Integrated: 8338344: Test TestPrivilegedMode.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Platform

SendaoYan syan at openjdk.org
Wed Aug 14 18:58:53 UTC 2024


On Wed, 14 Aug 2024 03:29:13 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi,
>   Test `test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestPrivilegedMode.java` always fails by ours daily CI with fastdebug build, but I can't reproduce this fail standalone.
>   When the test fails `java.lang.NoClassDefFoundError: jdk/test/lib/Platform`, the `jdk/test/lib/Platform.class` locate in `/var/tmp/tone/run/jtreg/jt-work/jtreg/hotspot_jtreg/classes/5/test/lib`, but `bootClassPath` [set as](https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/compiler/lib/ir_framework/driver/TestVMProcess.java#L103) `/var/tmp/tone/run/jtreg/jt-work/jtreg/hotspot_jtreg/classes/5/testlibrary_tests/ir_framework/tests/TestPrivilegedMode.d` 
> 
> bootClassPath += File.pathSeparator + Utils.TEST_CLASSES;
> 
> 
> I think `bootClassPath` should set as `Utils.TEST_CLASS_PATH`.

This pull request has now been integrated.

Changeset: e3a5e265
Author:    SendaoYan <syan at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e3a5e265a7747b02b8f828fbedea0dda7246fc51
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8338344: Test TestPrivilegedMode.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Platform

Reviewed-by: chagedorn, shade

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

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


More information about the hotspot-compiler-dev mailing list