This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: Container fix


I'm checking this in.

This fixes a bug in Container.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* java/awt/Container.java (addNotify): Unconditionally call
	addNotifyContainerChildren and superclass addNotify.

Index: java/awt/Container.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Container.java,v
retrieving revision 1.13
diff -u -r1.13 Container.java
--- java/awt/Container.java 2002/01/22 22:40:04 1.13
+++ java/awt/Container.java 2002/01/25 07:03:04
@@ -905,11 +905,8 @@
    */
   public void addNotify ()
   {
-    if (peer == null)
-      {
-	addNotifyContainerChildren ();
-	super.addNotify();
-      }
+    addNotifyContainerChildren ();
+    super.addNotify();
   }
 
   private void addNotifyContainerChildren()


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]