<AWT Dev> [8] Review request for 7184365 closed/java/awt/event/TextEvent/TextEventSequenceTest/TextEventSequenceTest fails
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Jul 20 06:28:45 PDT 2012
Hi, Alexander.
Can we remove these checks from the peers and move them to
TextComponent.setText()?
20.07.2012 17:05, Alexander Scherbatiy wrote:
>
> bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7184365
> webrev: http://cr.openjdk.java.net/~alexsch/7184365/webrev.00/
>
>
> The failed test expects that TextListener is not invoked after
> changing empty text to empty for the TextArea
> and is invoked for the TextField.
>
> After switching the EDIT control to RICHEDIT on windows for the
> TextField the TextListener listener is not invoked for both TextField
> and TextArea in this case.
>
> To be consistent with other platforms the fix:
> - Moves the checking for new empty text from the LWTextAreaPeer to
> LWTextComponentPeer on Mac OS X
> - Adds the empty text checking to the XTextFieldPeer (the
> XTextAreaPeer class has already has one) on Linux
>
> Thanks,
> Alexandr.
>
--
Best regards, Sergey.
More information about the awt-dev
mailing list