Author: rareddy
Date: 2010-09-24 16:20:29 -0400 (Fri, 24 Sep 2010)
New Revision: 2607
Modified:
branches/7.1.x/engine/src/main/java/org/teiid/cache/DefaultCache.java
Log:
TEIID-1276: fixing the ConcurrentModificationException exception
Modified: branches/7.1.x/engine/src/main/java/org/teiid/cache/DefaultCache.java
===================================================================
--- branches/7.1.x/engine/src/main/java/org/teiid/cache/DefaultCache.java 2010-09-24
19:23:01 UTC (rev 2606)
+++ branches/7.1.x/engine/src/main/java/org/teiid/cache/DefaultCache.java 2010-09-24
20:20:29 UTC (rev 2607)
@@ -220,7 +220,9 @@
@Override
public Set<K> keys() {
- return map.keySet();
+ synchronized(this.map) {
+ return new HashSet<K>(map.keySet());
+ }
}
}
\ No newline at end of file
Show replies by date