<Swing Dev> <Swing dev>[13] Review request for JDK-8216971: [macosx swing] For JCheckBoxMenuItem actionPerformed() is called twice, when apple.laf.useScreenMenuBar=true and modifier is InputEvent.META_DOWN_MASK

Manajit Halder manajit.halder at oracle.com
Sat Feb 23 15:44:29 UTC 2019


Hi All,

Please review the fix for JDK13.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8216971 <https://bugs.openjdk.java.net/browse/JDK-8216971>

Webrev:
http://cr.openjdk.java.net/~mhalder/8216971/webrev.00/ <http://cr.openjdk.java.net/~mhalder/8216971/webrev.00/>

Fix:
actionPerformed() was called twice due to wrong handling of key down event in method handleAction, which is corrected with this fix. 
This change was added during fix of issue JDK-8152492. Apart from the changes required to fix the problem, code related to finding out 
eventKey is removed as eventKey is no more used now. 

Note:
This issue is regression of bug 8152492, which was introduced in JDK release 9b120.

Regards,
Manajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20190223/2af1374a/attachment.html>


More information about the swing-dev mailing list