<AWT Dev> <Swing Dev>  JDK-6849922: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.html fails
krishna.addepalli at oracle.com
Wed Oct 31 11:59:26 UTC 2018
1. Please add "@key headful" to the test.
2. I don’t think you need to replace the waitForIdle call with delay. You may choose to add delay in addition to waitForIdle.
3. Minor nit: replace () -> createAndShowGUI() with method reference.
From: Shashidhara Veerabhadraiah
Sent: Wednesday, October 31, 2018 3:34 PM
To: swing-dev at openjdk.java.net; awt-dev at openjdk.java.net
Subject: <Swing Dev>  JDK-6849922: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.html fails
Hi All, Please review test fix for the below bug.
Fix: As the initial bug analysis said in the bug comments, it is a timing issue where in the choice menu remains opened even though the escape key is pressed. After removing the applet dependency and using the swing utilities to order the GUI creation and sending the key events with a delay is fixing the problem.
This test was successfully run on Windows 10, Mac 10.13 and Ubuntu 16.04.
Thanks and regards,
More information about the awt-dev