JDK-8356061 : [macos] com/apple/laf/RootPane/RootPaneDefaultButtonTest.java test fails on macosx-aarch64 machine
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2025-05-02
  • Updated: 2025-05-29
  • Resolved: 2025-05-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b25Fixed
Related Reports
Causes :  
Description
RootPaneDefaultButtonTest.java is recently pushed to the mainline in JDK-8355203 and is failing in CI for macosx-aarch64 machine.

Test Log from the CI run :

java.lang.IllegalStateException: The default button and non-default buttons should look different: java.awt.Color[r=55,g=55,b=55] matches java.awt.Color[r=55,g=55,b=55]
	at RootPaneDefaultButtonTest.test(RootPaneDefaultButtonTest.java:170)
	at RootPaneDefaultButtonTest.main(RootPaneDefaultButtonTest.java:80)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1447)

JavaTest Message: Test threw exception: java.lang.IllegalStateException: The default button and non-default buttons should look different: java.awt.Color[r=55,g=55,b=55] matches java.awt.Color[r=55,g=55,b=55]
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: The default button and non-default buttons should look different: java.awt.Color[r=55,g=55,b=55] matches java.awt.Color[r=55,g=55,b=55]
Comments
Changeset: 4193d052 Branch: master Author: jeremy <jeremy.wood@mac.com> Committer: SendaoYan <syan@openjdk.org> Date: 2025-05-23 02:25:12 +0000 URL: https://git.openjdk.org/jdk/commit/4193d052c0ae2336d816d0e76dec5420aa386465
23-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25244 Date: 2025-05-15 04:05:38 +0000
15-05-2025

On slow systems the test may run too fast.
08-05-2025

regression on Aarch64 introduced by JDK-8355203 fix reviewed by [~prr] and [~serb]
03-05-2025