You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/05/15 08:24:16 UTC

[jira] Assigned: (HARMONY-3863) [classlib][luni] AbstractSequentialList addAll(location,Collection) is incorrect. Adds collection reversed and returns false.

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

Paulex Yang reassigned HARMONY-3863:
------------------------------------

    Assignee: Paulex Yang

> [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.