[jdk25u-dev] RFR: 8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058 [v2]

Roland Mesde duke at openjdk.org
Mon Feb 16 20:03:38 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.

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

Changes:
  - all: https://git.openjdk.org/jdk25u-dev/pull/265/files
  - new: https://git.openjdk.org/jdk25u-dev/pull/265/files/bf01b645..bf01b645

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=265&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=265&range=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 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