--- old/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java 2016-12-19 22:11:55.000000000 +0300 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java 2016-12-19 22:11:55.000000000 +0300 @@ -1087,7 +1087,9 @@ } } else { //Invoke action event - item.action(mouseEvent.getWhen(), mouseEvent.getModifiers()); + @SuppressWarnings("deprecation") + final int modifiers = mouseEvent.getModifiers(); + item.action(mouseEvent.getWhen(), modifiers); ungrabInput(); } } else { @@ -1200,7 +1202,9 @@ if (citem instanceof XMenuPeer) { cwnd.selectItem(citem, true); } else if (citem != null) { - citem.action(event.getWhen(), event.getModifiers()); + @SuppressWarnings("deprecation") + final int modifiers = event.getModifiers(); + citem.action(event.getWhen(), modifiers); ungrabInput(); } break;