<AWT Dev> [13] Review Request: 8214469 [macos] PIT: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.java fails
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Tue Jun 4 11:48:29 UTC 2019
looks fine.
Regards
Prasanta
On 01-Jun-19 7:39 AM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for JDK 13.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8214469
> Fix: http://cr.openjdk.java.net/~serb/8214469/webrev.00
>
> This test failure on macOS was reported as a possible regression of
> JDK-6849922, but it is not strictly a regression.
> Previously it is sometimes passed(because it checks the assertions too
> fast), and now it always fails as expects because we now properly
> check the assertion in the test.
>
> The test has two components TextField and Choice. The Choice component
> is non-focusable but the test opens the popup by the mouse and tries
> to type something. On Windows, it is expected that the text will be
> typed to the textfield, but on Linux it is expected that this typing
> will be skipped(it was implemented this way to mimic the Motif
> toolkit). On macOS the text will be typed to the textfield. I can say
> that both behaviors are questionable but the difference in the
> implementation is not strictly specified, and the test just defends
> from the accidental change of these AWT components, so in the fix, I
> just align expectation on Windows and macOS.
>
More information about the awt-dev
mailing list