commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r178303 - /jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java
Date Tue, 24 May 2005 22:39:53 GMT
Author: scolebourne
Date: Tue May 24 15:39:51 2005
New Revision: 178303

URL: http://svn.apache.org/viewcvs?rev=178303&view=rev
Log:
Simplify code in iterator remove to avoid incorrect ConcurrentModificationException
bug 34690, from Jack

Modified:
    jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java

Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java?rev=178303&r1=178302&r2=178303&view=diff
==============================================================================
--- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java
(original)
+++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/FastArrayList.java
Tue May 24 15:39:51 2005
@@ -1219,7 +1219,7 @@
             get().remove(lastReturnedIndex);
             last--;
             expected = list;
-            iter = get().listIterator(previousIndex());
+            iter = get().listIterator(lastReturnedIndex);
             lastReturnedIndex = -1;
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message