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

Abhishek Kumar abhiscxk at openjdk.org
Wed Jul 16 06:30:40 UTC 2025


On Wed, 16 Jul 2025 06:20:22 GMT, Tejesh R <tr at openjdk.org> wrote:

>> `frame.requestFocus()` tries to make the frame current focus owner but it does not guarantee that focus will be granted. So, to be on safer side, it's better to bring the frame to the front and the request keyboard focus.
>
> According to me, `frame.requestFocus()` should work fine for this test. Can u test once without `frame.toFront();` and see if its fine ?

That may work but since this test was failing intermittently, I would prefer to keep both.
Test even passed without these statements but failing on specific node.

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

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


More information about the client-libs-dev mailing list