<AWT Dev> [8] Review request for 7184365 closed/java/awt/event/TextEvent/TextEventSequenceTest/TextEventSequenceTest fails

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Fri Jul 20 06:05:49 PDT 2012

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


More information about the awt-dev mailing list