On Mon, 1 Jun 2026 22:02:31 GMT, Marius Hanl <[email protected]> wrote:
> With JDK-26, there is a new error when running tests. It seems that this is > related how records hash their values. > With `JDK_HOME` set to a JDK-26, I can reliable reproduce this error by > running: >> ./gradlew :controls:test --tests TextLayoutUtilsContractTest > > Fix: `com.sun.javafx.geom.transform` added to the `addExports`. This is where > `BaseTransform` is located. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). I must be doing something wrong here: export JDK_HOME=/Users/angorya/Java/jdk-26.0.1.jdk/Contents/Home gradle :controls:test --tests TextLayoutUtilsContractTest ... and it fails. partial output: OS_NAME: mac os x OS_ARCH: aarch64 JAVA_HOME: /Users/angorya/Java/jdk-26.0.1.jdk/Contents/Home JDK_HOME: /Users/angorya/Java/jdk-26.0.1.jdk/Contents/Home java.runtime.version: 25.0.2+10-69 java version: 25 java build number: 10 jdk.runtime.version: 26.0.1+8-34 jdk version: 26 jdk build: 10 minimum jdk version: 25 minimum jdk build number: 36 Java target version: 25 XCODE version: Xcode15.4+1.0 cmake version: 3.22.3 ninja version: 1.8.2 ant version: 1.10.5 ... > Task :controls:test FAILED TextLayoutUtilsContractTest > testTextLayoutBoundsTypeChangeFrom0() FAILED java.lang.IllegalAccessError: class test.com.sun.javafx.pgstub.StubFontStrike$$HasherSpecializer/0x000000f000288828 (in unnamed module @0xf99f5e0) cannot access class com.sun.javafx.geom.transform.BaseTransform (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.geom.transform to unnamed module @0xf99f5e0 at test.com.sun.javafx.pgstub.StubFontStrike.hashCode(StubFontStrike.java:39) at javafx.graphics@27-internal/com.sun.javafx.text.PrismTextLayout.setContent(PrismTextLayout.java:149) at test.javafx.scene.control.skin.TextLayoutUtilsContractTest.setTextLayout(TextLayoutUtilsContractTest.java:359) at test.javafx.scene.control.skin.TextLayoutUtilsContractTest.testTextLayoutBoundsTypeChangeFrom0(TextLayoutUtilsContractTest.java:348) ------------- PR Comment: https://git.openjdk.org/jfx/pull/2180#issuecomment-4605329862
