RFR: 8338344: Test TestPrivilegedMode.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Platform [v2]
SendaoYan
syan at openjdk.org
Wed Aug 14 12:22:52 UTC 2024
On Wed, 14 Aug 2024 12:11:47 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:
>> Yes, it's enough to set `TEST_CLASS_PATH`. But the jtreg [doc](https://openjdk.org/jtreg/tag-spec.html) suggest that `appropriate @build directives to ensure that the classes will be compiled`.
>
> Okay, but then I suggest to remove `@build` when `TEST_CLASS_PATH` is enough because the IR framework is already special in that regard as it aims for simplicity: The IR test itself should not need to worry about the IR framework internal classes that need to be built. For example, we already silently build and install the `WhiteBox` class without the need to specify it with `@build` in the IR test.
Okey, the `@build jdk.test.lib.Platform` has been deleted.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20576#discussion_r1716825652
More information about the hotspot-compiler-dev
mailing list