JDK-7124210 : [macosx] Replacing text in a TextField does generate an extra TextEvent
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P3
  • Affected Version: 7
  • OS: os_x
  • CPU: generic
  • Submit Date: 2011-12-23
  • Updated Date: 2013-08-22
  • Resolved Date: 2012-05-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6Fixed 8 b38Fixed
Related Reports
Duplicate :  
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 LWTextComponentPeer sends removeUpdate and insertUPdate events in this case, they should be coalesced.
2012-02-13

EVALUATION reproducible
2011-12-26

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