United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7124210 : [macosx] Replacing text in a TextField does generate an extra TextEvent

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-05-23
Project Name:
JDK
Resolved Date:
2012-05-23
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-772 submitted 2011/12/09 by Yuri Nesterenko
Run the attached text. When it finished what it does, select all and press a letter (say, 'i'). Immediately you'll get not one but 2 TextEvents with 'i'.
For some reason the unit test mentioned below sometimes works OK but mostly fails. It's success is a matter of timing perhaps.

                                    

Comments
EVALUATION

Author: Yuri Nesterenko Date: 09/Dec/11 01:17 PM
Build: b220
java/awt/event/TextEvent/TextListener01.java
closed/java/awt/event/TextEvent/TextEventSequenceTest/TextEventSequenceTest
                                     
2011-12-23
EVALUATION

reproducible
                                     
2011-12-26
EVALUATION

LWTextComponentPeer sends removeUpdate and insertUPdate events in this case,
they should be coalesced.
                                     
2012-02-13



Hardware and Software, Engineered to Work Together