This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Component bug fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 25 Mar 2002 00:04:54 -0700
- Subject: Patch: FYI: Component bug fix
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
Component.processEvent checked the events in the wrong order.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/awt/Component.java (processEvent): Check ComponentEvent
after KeyEvent.
Index: java/awt/Component.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Component.java,v
retrieving revision 1.19
diff -u -r1.19 Component.java
--- java/awt/Component.java 2002/01/22 22:40:04 1.19
+++ java/awt/Component.java 2002/03/25 06:29:46
@@ -1858,12 +1858,12 @@
else
processMouseEvent((MouseEvent) e);
}
- else if (e instanceof ComponentEvent)
- processComponentEvent((ComponentEvent) e);
else if (e instanceof KeyEvent)
processKeyEvent((KeyEvent) e);
else if (e instanceof InputMethodEvent)
processInputMethodEvent((InputMethodEvent) e);
+ else if (e instanceof ComponentEvent)
+ processComponentEvent((ComponentEvent) e);
else if (e instanceof HierarchyEvent)
{
if (e.id == HierarchyEvent.HIERARCHY_CHANGED)