[jdk25u-dev] RFR: 8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058 [v3]
Roland Mesde
duke at openjdk.org
Mon Feb 16 22:13:54 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). Created [JDK-8377908](https://bugs.openjdk.org/browse/JDK-8377908) to capture the issue.
>
> 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)
Roland Mesde has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Merge master
- Backport d6ca382f4ee5793dfa191bba694a7fef88c591fc
- Backport ebeb77baaeb6d9098d7462f5ddf61d8583b1e493
-------------
Changes:
- all: https://git.openjdk.org/jdk25u-dev/pull/265/files
- new: https://git.openjdk.org/jdk25u-dev/pull/265/files/bf01b645..492a4377
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=265&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=265&range=01-02
Stats: 18741 lines in 415 files changed: 6811 ins; 4162 del; 7768 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