This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: java.awt.List fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 29 Jan 2002 20:06:39 -0700
- Subject: Patch: FYI: java.awt.List fix
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes a buglet in List.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/awt/List.java (addNotify): Correctly check to see if peer
does not exist.
Index: java/awt/List.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/List.java,v
retrieving revision 1.5
diff -u -r1.5 List.java
--- java/awt/List.java 2002/01/22 22:58:08 1.5
+++ java/awt/List.java 2002/01/30 02:46:35
@@ -858,7 +858,7 @@
public void
addNotify()
{
- if (peer != null)
+ if (peer == null)
peer = getToolkit ().createList (this);
super.addNotify ();
}