RFR: 8354900: javax/swing/AbstractButton/bug4133768.java failing on macosx-aarch64

Jayathirth D V jdv at openjdk.org
Fri Apr 18 06:38:45 UTC 2025


On Fri, 18 Apr 2025 05:53:01 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>> javax/swing/AbstractButton/bug4133768.java was automated and open-sourced recently and it fails intermittently in CI.
>> 
>> Looks like when we have mouse pointer at same location from where we are picking UI color from robot, it picks wrong color.
>> 
>> Updated test to have mouse pointer to be at different place from where we are picking roll-over color of buttons.
>> Also made other changes to make test more robust. With all these changes test now passes all the time in CI.
>
> test/jdk/javax/swing/AbstractButton/bug4133768.java line 1:
> 
>> 1: /*
> 
> Test is failing consistently on my mac machine with this exception "Button roll over color is : java.awt.Color[r=3,g=255,b=0] but it should be : java.awt.Color[r=0,g=255,b=0]"

You had any background window while running this test?
Also make sure if you have proper color profile for display.
It runs properly in my machine and our CI with 50 test runs on all platforms.

I can add tolerance, but since it is running without issues on CI i have not done the same.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24712#discussion_r2050136121


More information about the client-libs-dev mailing list