* java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
synchronized block.
* java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
before calling notifyAll().
From-SVN: r35042
InvocationEvent ie =
new InvocationEvent(eq, runnable, current, true);
-
- eq.postEvent(ie);
-
+
synchronized (current)
{
+ eq.postEvent(ie);
current.wait();
}
runnable.run ();
if (notifier != null)
- notifier.notifyAll ();
+ {
+ synchronized (notifier)
+ {
+ notifier.notifyAll ();
+ }
+ }
}
public Exception getException ()