[Arakhnę-Dev] [32] Bug fix: remove() on iterator cause internal exception.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 32
Author:   galland
Date:     2009-02-03 10:58:11 +0100 (Tue, 03 Feb 2009)

Log Message:
-----------
Bug fix: remove() on iterator cause internal exception.

Modified Paths:
--------------
    trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/AbstractWeakSoftValueMap.java


Modified: trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/AbstractWeakSoftValueMap.java
===================================================================
--- trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/AbstractWeakSoftValueMap.java	2009-02-03 09:48:05 UTC (rev 31)
+++ trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/AbstractWeakSoftValueMap.java	2009-02-03 09:58:11 UTC (rev 32)
@@ -339,7 +339,8 @@
 		}
 		
 		public boolean hasNext() { 
-			return (this.next!=null);
+			this.lastReplied = null;
+			return (this.next!=null); 
 		}
 		
 		public Entry<K,V> next() {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/