--- old/src/java.desktop/share/classes/java/awt/Container.java 2016-12-19 22:11:07.000000000 +0300 +++ new/src/java.desktop/share/classes/java/awt/Container.java 2016-12-19 22:11:06.000000000 +0300 @@ -4728,6 +4728,7 @@ * Listen for drag events posted in other hw components so we can * track enter/exit regardless of where a drag originated */ + @SuppressWarnings("deprecation") public void eventDispatched(AWTEvent e) { boolean isForeignDrag = (e instanceof MouseEvent) && !(e instanceof SunDropTargetEvent) && @@ -4826,6 +4827,7 @@ * If the target has been removed, we don't bother to send the * message. */ + @SuppressWarnings("deprecation") void retargetMouseEvent(Component target, int id, MouseEvent e) { if (target == null) { return; // mouse is over another hw component or target is disabled