harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-3863) [classlib][luni] AbstractSequentialList addAll(location,Collection) is incorrect. Adds collection reversed and returns false.
Date Tue, 15 May 2007 06:28:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

spark shen closed HARMONY-3863.
-------------------------------


Verified at r538068. Thanks

> [classlib][luni] AbstractSequentialList addAll(location,Collection) is incorrect. Adds
collection reversed and returns false.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3863
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3863
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>         Assigned To: Paulex Yang
>         Attachments: AbstractSequentialList.patch
>
>
> The following test case will give different output on  harmony and RI. According to spec,
its a bug of harmony. 
> mport java.util.*;
> public class ASLT extends AbstractSequentialList {
> public static void main(String[] args) {
> AbstractSequentialList al = new ASLT();
> String[] someList = { "Aardvark", "Bear", "Chimpanzee", "Duck" };
> Collection c = Arrays.asList(someList);
> al.addAll(c);
> System.out.println("my list contains " + al);
> System.out.println("adding the collection at index 2 returns "
> + al.addAll(2, c));
> System.out.println("my list now contains " + al);
> }
> LinkedList l = new LinkedList();
> public ListIterator listIterator(int index) {
> return l.listIterator(index);
> }
> public int size() {
> return l.size();
> }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message