From da1c22e1440a033e28fb87dda9e00bfe2a1b8edb Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Fri, 16 Jan 2004 22:26:49 +0000 Subject: [PATCH] EventQueue.java (pop): Prevent breaking the chain if pop is called for an intermediate queue. * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop is called for an intermediate queue. From-SVN: r75998 --- libjava/ChangeLog | 5 +++++ libjava/java/awt/EventQueue.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 62549a334ff..c1083e80c87 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-01-16 Fernando Nasser + + * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop + is called for an intermediate queue. + 2004-01-16 Thomas Fitzsimmons * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c diff --git a/libjava/java/awt/EventQueue.java b/libjava/java/awt/EventQueue.java index fe9138fa3f7..41dad066989 100644 --- a/libjava/java/awt/EventQueue.java +++ b/libjava/java/awt/EventQueue.java @@ -352,7 +352,9 @@ public class EventQueue // occur. synchronized (prev) { - prev.next = null; + prev.next = next; + if (next != null) + next.prev = prev; } synchronized (this)