[jdk25u-dev] RFR: 8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058
Roland Mesde
duke at openjdk.org
Fri Feb 13 16:43:25 UTC 2026
Backporting JDK-8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058.
This PR fixes two OpenGL tests (ScaleParamsOOB.java and OpaqueDest.java) fail after JDK-8358058 with color mismatch errors due to HiDPI fractional scaling issues when using OpenGL with hardware acceleration. Tests updated to handle Windows HiDPI fractional scaling correctly.
For parity with Oracle JDK.
Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
make test TEST=test/jdk/sun/java2d/OpenGL/OpaqueDest.java
make test TEST=test/jdk/sun/java2d/OpenGL/ScaleParamsOOB.java
Note: test/jdk/sun/java2d/OpenGL/ScaleParamsOOB.java fails on linux-x64 and linux-aarch64 (using xvfb and libmesa software rendering) with a color mismatch error (expected=ffff0000 actual=ff000000 at x=40 y=40), similar to the error resolved in this PR, but remains unaddressed since to [JDK-8358058](https://bugs.openjdk.org/browse/JDK-8358058).
Results attached:
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25296215/macos-aarch64-specific-test.log)
[macos-aarch64-specific-2-test.log](https://github.com/user-attachments/files/25296216/macos-aarch64-specific-2-test.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/25296217/windows-x64-specific-test.log)
[windows-x64-specific-2-test.log](https://github.com/user-attachments/files/25296218/windows-x64-specific-2-test.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/25296219/linux-x64-specific-test.log)
[linux-x64-specific-2-test.log](https://github.com/user-attachments/files/25296220/linux-x64-specific-2-test.log)
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25296221/linux-aarch64-specific-test.log)
[linux-aarch64-specific-2-test.log](https://github.com/user-attachments/files/25296222/linux-aarch64-specific-2-test.log)
-------------
Depends on: https://git.openjdk.org/jdk25u-dev/pull/249
Commit messages:
- Backport d6ca382f4ee5793dfa191bba694a7fef88c591fc
Changes: https://git.openjdk.org/jdk25u-dev/pull/265/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=265&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8369335
Stats: 38 lines in 2 files changed: 18 ins; 0 del; 20 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/265.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/265/head:pull/265
PR: https://git.openjdk.org/jdk25u-dev/pull/265
More information about the jdk-updates-dev
mailing list