Integrated: 8354629: Test tools/jlink/ClassFileInMetaInfo.java fails on builds with configure option --enable-linkable-runtime

Severin Gehwolf sgehwolf at openjdk.org
Wed Apr 16 08:25:54 UTC 2025


On Tue, 15 Apr 2025 13:09:31 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Please review this trivial test-only fix. A new test introduced with [JDK-8353267](https://bugs.openjdk.org/browse/JDK-8353267) runs `jlink` using the `ToolProvider` API in-process. This is problematic for JEP 493 enabled builds which don't allow to be run on a patched JDK. Note that JTREG patches the JDK's `java.base` module with `JTRegModuleHelper` class. The fix is to run in `othervm` instead.
> 
> Testing:
> - [x] GHA
> - [x] jlink tests on a build with `--enable-linkable-runtime`. Shows the failure before and passes after.
> 
> Thoughts?

This pull request has now been integrated.

Changeset: 18d605fa
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/18d605fadbd57090f5eb02c18e6e8860d9086515
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8354629: Test tools/jlink/ClassFileInMetaInfo.java fails on builds with configure option --enable-linkable-runtime

Reviewed-by: alanb

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

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


More information about the core-libs-dev mailing list