Skip to content

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

Open
rm-gh-8 wants to merge 1 commit into
openjdk:pr/4465from
rm-gh-8:JDK-8369335-V17
Open

8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058#4467
rm-gh-8 wants to merge 1 commit into
openjdk:pr/4465from
rm-gh-8:JDK-8369335-V17

Conversation

@rm-gh-8
Copy link
Copy Markdown
Contributor

@rm-gh-8 rm-gh-8 commented May 18, 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. Already backported to 21.

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

Results:

Please note that similar to the backport for 21 and 25, "test/jdk/sun/java2d/OpenGL/ScaleParamsOOB.java" fails on linux-x64 and linux-aarch64. This will be addressed by #4471

windows-x64-specific-test.log
windows-x64-specific-2-test.log
macos-aarch64-specific-test.log
macos-aarch64-specific-2-test.log
linux-x64-specific-test.log
linux-x64-specific-2-test.log
linux-aarch64-specific-test.log
linux-aarch64-specific-2-test.log



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8369335 needs maintainer approval

Integration blocker

 ⚠️ Dependency #4465 must be integrated first

Issue

  • JDK-8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058 (Bug - P4 - Approved)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4467/head:pull/4467
$ git checkout pull/4467

Update a local copy of the PR:
$ git checkout pull/4467
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4467/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4467

View PR using the GUI difftool:
$ git pr show -t 4467

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4467.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 18, 2026

👋 Welcome back rmesde! A progress list of the required criteria for merging this PR into pr/4465 will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@rm-gh-8 rm-gh-8 marked this pull request as ready for review May 18, 2026 13:01
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 18, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot changed the title Backport 917d67e469612ba4f2a1406e6121cdc9cdc1b969 8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058 May 18, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 18, 2026

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review labels May 18, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 18, 2026

Webrevs

@rm-gh-8
Copy link
Copy Markdown
Contributor Author

rm-gh-8 commented May 19, 2026

/approval request for backport of JDK-8369335: Two sun/java2d/OpenGL tests fail on Windows after JDK-8358058.

This is a test fix.

For parity with Oracle JDK. Already backported to 21.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 19, 2026

@rm-gh-8
8369335: The approval request has been created successfully.

@openjdk openjdk Bot added approval Requires approval; will be removed when approval is received and removed approval Requires approval; will be removed when approval is received labels May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant