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

Roland Mesde duke at openjdk.org
Tue Feb 17 19:12:16 UTC 2026


On Mon, 16 Feb 2026 22:13:54 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)
>
> 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

Based on feedback. Withdrawing the PR and replacing it with: https://github.com/openjdk/jdk/pull/29765

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

PR Comment: https://git.openjdk.org/jdk25u-dev/pull/265#issuecomment-3916606489


More information about the jdk-updates-dev mailing list