Andrea Aime ha scritto:

> Ways to solve this problem. Quick ideas are:
> * have FeatureIterator objects take a snapshot of the LinkedHashMap 
> contents and work on top of it. Not a deep copy btw, a shallow one
> that just give the iterator its own collection that no one else will touch
> * change from LinkedHashMap to something else that won't throw a
>    ConcurrentModificationException... could not find any. 

Java5 has at least one that allows for reading during modification:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to