<AWT Dev> Request for review fo bug JDK-8039467 [TEST_BUG] Test java/awt/Choice/UnfocusableToplevel/UnfocusableToplevel.java lefts keystrokes in a keyboard buffer on Windows

Ambarish Rapte ambarish.rapte at oracle.com
Thu Sep 10 06:23:20 UTC 2015


Hi,

                Please review the following fix for jdk9.

                Bug:            https://bugs.openjdk.java.net/browse/JDK-8039467

                Webrev:  http://cr.openjdk.java.net/~psadhukhan/ambarish/8039467/webrev.00/

 

Issue:

As the test window is non focusable, the automated keyboard events are not consumed by the window.

But these keyboard events are getting consumed by any previously focused window, & this disturbs the environment.

 

Fix:

1.      Create temporary frame from test code & set focus on it.

2.      Keep same test code flow for testing unfocusable window.

3.      The automated keyboard events will be consumed by the temporary frame. This will assure that other window / environment is not affected.

 

 

 

Many Thanks,
Ambarish Rapte

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20150909/be463854/attachment.html>


More information about the awt-dev mailing list