You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/05/14 11:49:16 UTC
[jira] Resolved: (HARMONY-3852) [classlib][luni] ArrayList does not
throw ConcurrentModificationException after calling sequence:
ArrayList.trimToSize() & ArrayList.iterator().next()
[ https://issues.apache.org/jira/browse/HARMONY-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paulex Yang resolved HARMONY-3852.
----------------------------------
Resolution: Fixed
Spark, patch applied at r537764, thanks a lot, please verify.
> [classlib][luni] ArrayList does not throw ConcurrentModificationException after calling sequence: ArrayList.trimToSize() & ArrayList.iterator().next()
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3852
> URL: https://issues.apache.org/jira/browse/HARMONY-3852
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Paulex Yang
> Attachments: ArrayList_trimToSize.patch
>
>
> The following test case will fail on harmony but pass on RI
> import java.util.*;
> import junit.framework.TestCase;
> public class ArrayListTest extends TestCase {
> public void test_trimToSize() {
> Vector v = new Vector();
> v.add("a");
> ArrayList al = new ArrayList(v);
> Iterator it = al.iterator();
> al.trimToSize();
> try {
> it.next();
> fail("should throw a ConcurrentModificationException");
> } catch (ConcurrentModificationException ioobe) {
> // expected
> }
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.