On 23/10/05, Stephen Colebourne <[EMAIL PROTECTED]> wrote:

> My main question is can these tests be run against any class? We're
> particularly stuck with
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32573 collections
> LRUMap at present where a bug can easily be reproduced when you don't
> sync, but not at all when you do sync. Yet we have bugs reported! So, is

The issue is not clear to me on the exact circumstances when the
reported bugs do occur:
- do problems ever occur in single-threaded use?
- if problems only occur in multi-threaded use, is access synchronized?
and, just as important:
- are all uses of Iterators synchronized on the map?

See for example:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedMap(java.util.Map)

HTH.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to