On 04/24/2012 03:06 AM, Jacopo Cappellato wrote: > This is really weird... I am wondering if there are issues caused by > concurrent threads accessing the cache but the JUnit tests should be all > executed in the same thread... so this should not be the case.
The tests run in the foreground, yes, but soft-references are removed by a singleton background thread that is reading from a ReferenceQueue, and timed entries are also removed *immediately* by a singleton background thread.