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

Severin Gehwolf sgehwolf at openjdk.org
Tue Apr 15 13:15:01 UTC 2025


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:
- [ ] GHA
- [x] jlink tests on a build with `--enable-linkable-runtime`. Shows the failure before and passes after.

Thoughts?

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

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

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

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


More information about the core-libs-dev mailing list