You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nathan Beyer (JIRA)" <ji...@apache.org> on 2006/06/08 02:42:30 UTC

[jira] Resolved: (HARMONY-539) ArrayList.addAll(0, ...) index out of bounds exception

     [ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
     
Nathan Beyer resolved HARMONY-539:
----------------------------------

    Resolution: Fixed

I applied a fix at r412625. Mark can you check this out and see if it completely fixes the bug for you.

> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
>          Key: HARMONY-539
>          URL: http://issues.apache.org/jira/browse/HARMONY-539
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Nathan Beyer
>     Priority: Minor
>  Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
>         ArrayList alist = new ArrayList();
>         ArrayList blist = new ArrayList();
>         alist.add("a");
>         alist.add("b");
>         blist.add("c");
>         blist.add("d");
>         blist.remove(0);
>         blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira