Integrated: 8273578: javax/swing/JMenu/4515762/bug4515762.java fails on macOS 12

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Sep 23 05:18:56 UTC 2021


On Fri, 17 Sep 2021 12:24:40 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> The test sometimes fail on macos12 citing "Action has not been received". Seems like some key events sometimes are not received reliably. 
> Proposed fix is to apply mach5 stability fixes which is to set autodelay to 100ms, move frame to center of screen from top-left, added extra waitForIdle(), wait for 1 sec after frame is made visible.
> Additionally, it is seen that it mixes Util.hitKeys and robot.keyPress/Release. Changed to make it use robot.keyPress/keyRelease all times. Also, updated test to have specific error message for specific keyevent so that we know which keyevent is not received in case it fails again.
> 
> Run on mac12 and all other platforms multiple times and test run is green. Link in JBS.

This pull request has now been integrated.

Changeset: 45adc922
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/45adc9227a28c8d614c41ac496bbeaa752e5fd7b
Stats:     32 lines in 2 files changed: 13 ins; 1 del; 18 mod

8273578: javax/swing/JMenu/4515762/bug4515762.java fails on macOS 12

Reviewed-by: jdv, serb

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

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



More information about the client-libs-dev mailing list