summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2004-07-01 18:24:56 +0000
committerMark Wielaard <mark@klomp.org>2004-07-01 18:24:56 +0000
commitbabf21ff4fbd46be761e0e3723416d0bab16131d (patch)
tree5ae04d7d0c0d536f8d2815c1a9182fd50dcbf406
parent30167de62b461bb75d10ecf9dd2d1cd02875930d (diff)
downloadclasspath-babf21ff4fbd46be761e0e3723416d0bab16131d.tar.gz
* java/awt/event/InvocationEvent.java (dispatch): Synchronize
on notifier object before calling notifyAll().
-rw-r--r--ChangeLog5
-rw-r--r--java/awt/event/InvocationEvent.java9
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 767c27c11..3da54ce0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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();
+ }
}
/**