You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rm...@apache.org on 2017/06/09 10:32:58 UTC
svn commit: r1798187 -
/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java
Author: rmannibucau
Date: Fri Jun 9 10:32:57 2017
New Revision: 1798187
URL: http://svn.apache.org/viewvc?rev=1798187&view=rev
Log:
JCS-178 fixing RemoteCacheNoWaitFacade constructor logic
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java?rev=1798187&r1=1798186&r2=1798187&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java Fri Jun 9 10:32:57 2017
@@ -19,6 +19,7 @@ package org.apache.commons.jcs.auxiliary
* under the License.
*/
+import java.util.ArrayList;
import java.util.List;
import org.apache.commons.jcs.auxiliary.remote.server.behavior.RemoteType;
@@ -67,7 +68,7 @@ public class RemoteCacheNoWaitFacade<K,
super( noWaits, rca, cacheMgr, cacheEventLogger, elementSerializer );
this.cacheFactory = cacheFactory;
- for (RemoteCacheNoWait<K,V> rcnw : this.noWaits)
+ for (RemoteCacheNoWait<K,V> rcnw : new ArrayList<RemoteCacheNoWait<K, V>>(this.noWaits))
{
((RemoteCache<K, V>)rcnw.getRemoteCache()).setFacade(this);
this.noWaits.add(rcnw);