harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5705) [classlib][luni] ArrayList.addAll( Collection c) may throw unexpected ArrayIndexOutofBoundsException
Date Fri, 11 Apr 2008 09:08:08 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tony Wu resolved HARMONY-5705.
------------------------------

    Resolution: Fixed

Hi, Sean

patch applied at r647083 w/ minor modification on testcase, please verify if it fixed as you
expected.

> [classlib][luni] ArrayList.addAll( Collection c) may throw unexpected ArrayIndexOutofBoundsException
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5705
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5705
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Sean Qiu
>            Assignee: Tony Wu
>             Fix For: 5.0M6
>
>         Attachments: Harmony-5705-V2.diff, Harmony-5705.diff
>
>
> Run these test, Harmony will throw unexpected exception of java.lang.ArrayIndexOutofBoundsException:
> ===============
>         String[] data = new String[] { "1", "2", "3", "4", "5", "6", "7", "8" };
>         ArrayList list1 = new ArrayList();
>         ArrayList list2 = new ArrayList();
>         for (String d : data) {
>             list1.add(d);
>             list2.add(d);
>             list2.add(d);
>         }
>         while (list1.size() > 0)
>             list1.remove(0);
>         list1.addAll(list2);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message