harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-539) ArrayList.addAll(0, ...) index out of bounds exception
Date Wed, 31 May 2006 20:46:29 GMT
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
    Priority: Minor


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