<AWT Dev> [10] Review Request: 8183518 Premature deprecation of Event/InputEvent/KeyEvent in Java 9
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Wed Nov 22 11:09:11 UTC 2017
Hi Sergey,
Don't we need to remove
@SuppressWarnings("deprecation")
from BasicComboPopup and BasicGraphicsUtils?
Regards
Prasanta
On 11/22/2017 4:16 AM, Sergey Bylokhov wrote:
> 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
>
>
More information about the awt-dev
mailing list