RFR: 8338282: javax/swing/JMenuBar/TestMenuMnemonicLinuxAndMac.java test failed on macOS and Ubuntu

Tejesh R tr at openjdk.org
Wed Jul 16 05:28:41 UTC 2025


On Tue, 15 Jul 2025 05:40:17 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

> Test is failing on intermittently on macOS and ubuntu machine in CI testing.
> Test stabilization done by requesting focus for the frame before starting the testing. 
> 
> Ran the test before and after the fix and there is no failure after test stabilization for multiple run.
> CI link is added in JBS.

test/jdk/javax/swing/JMenuBar/TestMenuMnemonicLinuxAndMac.java line 120:

> 118:         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
> 119:         frame.setVisible(true);
> 120:         frame.toFront();

` frame.toFront();` is required ? Did you try only with `frame.requestFocus();` ?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26307#discussion_r2209255971


More information about the client-libs-dev mailing list