[jdk21u-dev] RFR: 8339238: Update to use jtreg 7.5.1

Adam Farley afarley at openjdk.org
Tue Feb 10 10:03:06 UTC 2026


On Mon, 9 Feb 2026 14:23:57 GMT, Adam Farley <afarley at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [9042aa82](https://github.com/openjdk/jdk25u-dev/commit/9042aa82a890b0f0348ac8127dbd3268f2620346) from the [openjdk/jdk25u-dev](https://github.com/openjdk/jdk25u-dev) repository.
> 
> The commit being backported was authored by Christian Stein on 19 Feb 2025 and was reviewed by Erik Joelsson, Jaikiran Pai, Roger Riggs and Iris Clark.
> 
> Thanks!

One test fails across all platforms: java/foreign/nested/TestNested.java


D:\a\jdk21u-dev\jdk21u-dev\test\jdk\java\foreign\NativeTestHelper.java:24: error: AddressLayout is a preview API and is disabled by default.
import java.lang.foreign.AddressLayout;
                        ^
  (use --enable-preview to enable preview APIs)
D:\a\jdk21u-dev\jdk21u-dev\test\jdk\java\foreign\NativeTestHelper.java:25: error: Arena is a preview API and is disabled by default.
import java.lang.foreign.Arena;
                        ^
  (use --enable-preview to enable preview APIs)


This is repeated for all of the imported foreign classes.

[The original bug](https://bugs.openjdk.org/browse/JDK-8339238) states that --enable-preview is one of the main problems with upgrading to 7.5.1, however the addendum indicates this issue was resolved in jtreg. Investigating.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2605#issuecomment-3876585880


More information about the jdk-updates-dev mailing list