[ https://issues.apache.org/jira/browse/HARMONY-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Qiu updated HARMONY-5705:
------------------------------
Attachment: Harmony-5705.diff
Could you please try this patch ? Thanks
> [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
> 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.
|