[Patch] java.awt.Component fix

Michael Koch mkoch@konqueror.de
Thu Sep 23 07:04:00 GMT 2004


Hi list,


I just commited the attached patch to merge a little fix from GNU
classpath.


Michael


2004-09-22  Dalibor Topic  <robilad@kaffe.org>

	* java/awt/Component.java (postEvent):
	Only delegate to parent if a parent exists.
	Reported by: Stephane Meslin-Weber <steph@tangency.co.uk>

-------------- next part --------------
Index: java/awt/Component.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Component.java,v
retrieving revision 1.37.2.21
diff -u -r1.37.2.21 Component.java
--- java/awt/Component.java	2 Sep 2004 21:26:22 -0000	1.37.2.21
+++ java/awt/Component.java	22 Sep 2004 18:59:18 -0000
@@ -2270,7 +2270,7 @@
   {
     boolean handled = handleEvent (e);
 
-    if (!handled)
+    if (!handled && getParent() != null)
       // FIXME: need to translate event coordinates to parent's
       // coordinate space.
       handled = getParent ().postEvent (e);


More information about the Java-patches mailing list