diff options
author | Mark Wielaard <mark@klomp.org> | 2004-07-01 18:24:56 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2004-07-01 18:24:56 +0000 |
commit | babf21ff4fbd46be761e0e3723416d0bab16131d (patch) | |
tree | 5ae04d7d0c0d536f8d2815c1a9182fd50dcbf406 | |
parent | 30167de62b461bb75d10ecf9dd2d1cd02875930d (diff) | |
download | classpath-babf21ff4fbd46be761e0e3723416d0bab16131d.tar.gz |
* java/awt/event/InvocationEvent.java (dispatch): Synchronize
on notifier object before calling notifyAll().
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/event/InvocationEvent.java | 9 |
2 files changed, 12 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2004-07-01 Mark Wielaard <mark@klomp.org> + * java/awt/event/InvocationEvent.java (dispatch): Synchronize + on notifier object before calling notifyAll(). + +2004-07-01 Mark Wielaard <mark@klomp.org> + * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter): Define hid at start of function. diff --git a/java/awt/event/InvocationEvent.java b/java/awt/event/InvocationEvent.java index fbf7b5e93..76d4a5582 100644 --- a/java/awt/event/InvocationEvent.java +++ b/java/awt/event/InvocationEvent.java @@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent } else runnable.run(); - if (notifier != null) - notifier.notifyAll(); + + Object o = notifier; + if (o != null) + synchronized(o) + { + o.notifyAll(); + } } /** |