You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2008/04/09 12:33:24 UTC
[jira] Assigned: (HARMONY-5705) [classlib][luni] ArrayList.addAll(
Collection c) may throw unexpected ArrayIndexOutofBoundsException
[ https://issues.apache.org/jira/browse/HARMONY-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Wu reassigned HARMONY-5705:
--------------------------------
Assignee: Tony Wu
> [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.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.