This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Container fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 25 Jan 2002 00:21:11 -0700
- Subject: Patch: FYI: Container fix
- Reply-to: tromey at redhat dot com
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()