JDK-7124210 : [macosx] Replacing text in a TextField does generate an extra TextEvent
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2013-08-22
  • Resolved: 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 Availability Release.

To download the current JDK release, click here.
7u6Fixed 8 b38Fixed
Related Reports
Duplicate :  
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.

EVALUATION LWTextComponentPeer sends removeUpdate and insertUPdate events in this case, they should be coalesced.

EVALUATION reproducible

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