<Swing Dev> RFR: 8199079: Test javax/swing/UIDefaults/6302464/bug6302464.java is unstable

Phil Race prr at openjdk.java.net
Tue Apr 20 23:19:05 UTC 2021


On Fri, 16 Apr 2021 06:53:21 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> This test was marked as unstable in CI run in samevm mode but later on was found passing in now-default othervm mode but was problemlisted only on macos by JDK-8254976.
> It is found that this test started failing in macos due to JDK-8220150:  [macos] macos10.14 Mojave returns anti-aliased glyphs instead of aliased B&W glyphs
> which turns Antialias hint even if it is set to off from macosx10.14 onwards.
> So, this test started failing when it tries to test Antialias OFF hint.
> 
> Proposed fix is to check for macosx 10.14 and greater version and bail out from this subtest.
> 
> @prrace Can you please take a look?

test/jdk/javax/swing/UIDefaults/6302464/bug6302464.java line 138:

> 136:         }
> 137:         if (!isMacOSX14) {
> 138:             HashSet colorsAAOff = getAntialiasedColors(VALUE_TEXT_ANTIALIAS_OFF, 100);

what happens on macOS 11 ?

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

PR: https://git.openjdk.java.net/jdk/pull/3537


More information about the swing-dev mailing list