InvocationEvent.java (dispatch): Synchronize on notifier object before calling notifyAll().

2004-07-17  Mark Wielaard  <mark@klomp.org>

	* java/awt/event/InvocationEvent.java (dispatch): Synchronize
	on notifier object before calling notifyAll().

From-SVN: r84859
This commit is contained in:
Mark Wielaard 2004-07-17 08:52:13 +00:00 committed by Michael Koch
parent 2ccc5a9508
commit 10c383a4be
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-07-17 Mark Wielaard <mark@klomp.org>
* java/awt/event/InvocationEvent.java (dispatch): Synchronize
on notifier object before calling notifyAll().
2004-07-17 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/channels/FileChannelImpl.java

View File

@ -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();
}
}
/**