You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/06/08 10:43:31 UTC
[jira] Commented: (HARMONY-539) ArrayList.addAll(0, ...) index out
of bounds exception
[ http://issues.apache.org/jira/browse/HARMONY-539?page=comments#action_12415295 ]
Mark Hindess commented on HARMONY-539:
--------------------------------------
Looks good. Thanks for the fix and commit.
> 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