For Programmers: Free Programming Magazines  


Home > Archive > Java Help > October 2004 > Re: why java.util.ConcurrentModificationException in synchronized









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: why java.util.ConcurrentModificationException in synchronized
Jacob

2004-10-13, 8:57 pm

RightWay wrote:

> how is possible that a function inside a synchronized method throws a
> java.util.ConcurrentModificationException??


Reason as others already pointed out.

Solution depends on your specific case, but often by
iterating a *copy* of the list.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com