activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: ConcurrentModificationException while closing consumer
Date Tue, 10 Feb 2009 17:50:00 GMT
> However, wouldn't static analysis of the code be sufficient in this case?
> The code segment above is the only thing that is not protected by synchronization, whilst
> every other use of this collection is.

Static analysis can identify the problem and the fix, but it doesn't
protect the change into the future.
A test case is the only reliable way to do this as it will capture the use case.

I committed a test case[1], it is not perfect but it does reproduce
about 80% of the time.


Bonnie, I hope this sort of matches your use case.


View raw message