United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7154072 [macosx] swallowing key events
JDK-7154072 : [macosx] swallowing key events

Details
Type:
Bug
Submit Date:
2012-03-15
Status:
Closed
Updated Date:
2012-04-04
Project Name:
JDK
Resolved Date:
2012-04-04
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4 (b18)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
This is a potential regression of the fix for 7142565. The method [AWTView deliverJavaKeyEventHelper] uses a pointer to the latest key event in order to compare current key event with the previous one. In case the pointers are equal current event is ignored.

However, as the pointer doesn't retain the event, there might be a situation when a new event object is allocated by the same address as the previous one. In such case the events would be erroneously considered equal.

                                    

Comments
SUGGESTED FIX

http://cr.openjdk.java.net/~ant/7154072/
                                     
2012-03-15
EVALUATION

We have to retain the object to avoid the address collision.
                                     
2012-03-15
EVALUATION

Eventually reproduced. Press SHIFT+META+M in a text field, then release and press "M" (hold other keys) for several times. Not all "M" key_pressed are dispatched.
                                     
2012-03-20



Hardware and Software, Engineered to Work Together