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

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

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang resolved HARMONY-3863.
----------------------------------

    Resolution: Fixed

Spark, patch applied at r538068, thanks a lot, please verify.

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-3863:
--------------------------------

    Attachment: AbstractSequentialList.patch

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


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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ 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.