Integrated: JDK-8365426 : [macos26] Graphics2D tests fail on new macOS 26
Harshitha Onkar
honkar at openjdk.org
Fri Nov 14 23:57:17 UTC 2025
On Thu, 13 Nov 2025 23:20:18 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> This test started to fail on macOS26 due to color inconsistency at certain points.
> Color tolerance has been added as a fix.
>
> The color tolerance for the dominant component (eg Color.RED - dominant component is red) is set less (delta /PRIMARY_TOLERANCE = 2) and for non-dominant (For Color.RED - Green and Blue are non-dominant) is set more (delta / TOLERANCE=30). This ensures we are checking for shades (brighter/lighter) of the expected color.
>
> Since the issue is only seen on macOS, I have set both PRIMARY_TOLERANCE & TOLERANCE to 2 on other platforms to keep the test almost close to the original one.
>
> Tested locally on macOS 26.0.1 and 26.1 and fix works as expected.
>
> CI testing on other platforms looks good and no regressions are observed (Link added to JBS).
This pull request has now been integrated.
Changeset: 7c169c98
Author: Harshitha Onkar <honkar at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7c169c9814a694126f524e8941b1035e6695900c
Stats: 44 lines in 1 file changed: 19 ins; 2 del; 23 mod
8365426: [macos26] Graphics2D tests fail on new macOS 26
Reviewed-by: kizune, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/28312
More information about the client-libs-dev
mailing list