--- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java 2017-07-26 18:03:18.000000000 +0530 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java 2017-07-26 18:03:18.000000000 +0530 @@ -51,20 +51,6 @@ super(); } - // We block, waiting for an empty event to get posted (CToolkit.invokeAndWait) - // This is so we finish dispatching DropTarget events before we dispatch the dragDropFinished event (which is a higher priority). - private void flushEvents(Component c) { - try { - LWCToolkit.invokeAndWait(new Runnable() { - public synchronized void run() { - } - }, c); - } - catch(Exception e) { - e.printStackTrace(); - } - } - protected Object getNativeData(long format) { long nativeDropTarget = this.getNativeDragContext(); --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CDropTarget.m 2017-07-26 18:03:19.000000000 +0530 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CDropTarget.m 2017-07-26 18:03:19.000000000 +0530 @@ -663,13 +663,6 @@ if (sDraggingError == FALSE) { JNFCallVoidMethod(env, fDropTargetContextPeer, handleDropMessageMethod, fComponent, (jint) javaLocation.x, (jint) javaLocation.y, dropAction, actions, formats, ptr_to_jlong(self)); // AWT_THREADING Safe (event) } - - if (sDraggingError == FALSE) { - JNF_MEMBER_CACHE(flushEventsMethod, jc_CDropTargetContextPeer, "flushEvents", "(Ljava/awt/Component;)V"); - if (sDraggingError == FALSE) { - JNFCallVoidMethod(env, fDropTargetContextPeer, flushEventsMethod, fComponent); // AWT_THREADING Safe (AWTRunLoopMode) - } - } } else { // 8-19-03 Note: [Radar 3368754] // draggingExited: is not called after a drop - we must do that here ... but only in case