<AWT Dev> [10] Review Request: 8183518 Premature deprecation of Event/InputEvent/KeyEvent in Java 9
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Nov 21 22:46:31 UTC 2017
Hello.
Please review the fix for jdk10.
Bug: https://bugs.openjdk.java.net/browse/JDK-8183518
Webrev can be found at: http://cr.openjdk.java.net/~serb/8183518/webrev.00
In jdk9 the list of input events, which have an extended equivalent,
were marked as deprecated. But there is some API which works with the
old version of events only. In the fix the new method is added:
Toolkit.getMenuShortcutKeyMaskEx()
This method works in the same way as old getMenuShortcutKeyMask() but
returns the new extended mask.
In the fix I have replaced most usages of the old method, except the
places where it is used with ActionEvent, which has its own masks(the
same as old input event), and currently has no extended modifiers(see [1]).
CSR will be filed after the technical review.
[1] https://bugs.openjdk.java.net/browse/JDK-8186024
--
Best regards, Sergey.
More information about the awt-dev
mailing list