harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-539) ArrayList.addAll(0, ...) index out of bounds exception
Date Thu, 08 Jun 2006 23:22:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
     
Nathan Beyer closed HARMONY-539:
--------------------------------


Verified by Mark.

> 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


Mime
View raw message