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

Roland Mesde duke at openjdk.org
Fri Feb 20 17:45:03 UTC 2026


On Thu, 12 Feb 2026 21:32:24 GMT, Roland Mesde <duke at openjdk.org> wrote:

> 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)

This pull request has now been integrated.

Changeset: 6a95907d
Author:    Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/6a95907d9ac3c72d4eb943d38975183f9e335deb
Stats:     38 lines in 2 files changed: 18 ins; 0 del; 20 mod

8369335: Two  sun/java2d/OpenGL tests fail on Windows after JDK-8358058

Backport-of: d6ca382f4ee5793dfa191bba694a7fef88c591fc

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

PR: https://git.openjdk.org/jdk25u-dev/pull/265


More information about the jdk-updates-dev mailing list