Could you create a simple test case we could add to Mauve?

Thanks,
Brian

Martin Schr�der <[EMAIL PROTECTED]> writes:

> Hi,
> TreeSet.addAll loops forever if the Collection to add has more
> than one element.
> 
> $Id: TreeSet.java,v 1.3 1999/06/25 13:17:04 jochen Exp $
> 
> Java is Java(tm) Runtime Loader Version 1.1.7
> 
> Name        : java                        Distribution: SuSE Linux 6.1 (i386)
> Version     : 1.1.7v1a                          Vendor: SuSE GmbH, Nuernberg, Germany
> Release     : 8                             Build Date: Don 25 M�r 1999 02:20:12 MET
> Install date: Fre 21 Mai 1999 13:53:17 MEST      Build Host: Wiles.suse.de
> Group       : unsorted                      Source RPM: java-1.1.7v1a-8.src.rpm
> Size        : 53877993                         License: 1994, 1995, 1996, 1997 Sun 
>Microsystems, Inc.
> Packager    : [EMAIL PROTECTED]
> Summary     : Java Developers Kit
> 
> Here's the patch to fix this:
> --- java/util/TreeSet.java      Fri Jun 25 15:17:04 1999
> +++ /home/ms/java/classpath/java/util/TreeSet.java      Wed Mar  1 14:16:59 2000
> ***************
> *** 150,156 ****
>       Iterator itElements = oCollection.iterator();
>   
>       while (itElements.hasNext())
> !       boResult = (boResult || add(itElements.next()));
>   
>       return boResult;
>     }
> --- 150,156 ----
>       Iterator itElements = oCollection.iterator();
>   
>       while (itElements.hasNext())
> !       boResult |= add(itElements.next());
>   
>       return boResult;
>     }
> 
> A look into section 15.23 of the Langspec helps. :-)
> 
> Best regards
>     Martin
> -- 
>                   Martin Schr�der, [EMAIL PROTECTED]
>             ArtCom GmbH, Grazer Stra�e 8, D-28359 Bremen
>            Voice +49 421 20419-44 / Fax +49 421 20419-10

-- 
Brian Jones <[EMAIL PROTECTED]>

Reply via email to