jdk/src/share/classes/java/awt/Window.java

Print this page
rev 5693 : 7192977: Issue in toolkit thread
Reviewed-by: skoivu, rupashka, art

@@ -1204,11 +1204,11 @@
         if (EventQueue.isDispatchThread()) {
             action.run();
         }
         else {
             try {
-                EventQueue.invokeAndWait(action);
+                EventQueue.invokeAndWait(this, action);
             }
             catch (InterruptedException e) {
                 System.err.println("Disposal was interrupted:");
                 e.printStackTrace();
             }