RFR: 8350924: javax/swing/JMenu/4213634/bug4213634.java fails [v2]

Tejesh R tr at openjdk.org
Tue Mar 4 08:43:53 UTC 2025


On Tue, 4 Mar 2025 07:42:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> test/jdk/javax/swing/JMenu/4213634/bug4213634.java line 81:
>> 
>>> 79:         frame.setLocationRelativeTo(null);
>>> 80:         frame.setVisible(true);
>>> 81:         button.requestFocusInWindow();
>> 
>> Since the root cause is unknown and you are trying to make the test more robust, should we add a delay after `frame.setVisible(true);` ? I'm just suspecting request focus failure after `setVisible`.
>
> that's why I added waitForIdle/delay after createShowGUI

I meant in right after `frame.setVisible(true);`, between line 80 and 81.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23837#discussion_r1978904203


More information about the client-libs-dev mailing list