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:21 UTC
[jira] Updated: (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 ]
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.