"Bordet, Simone" wrote:
>
> the remove(entry) in org.jboss.util.LRUCachePolicy$LRUList.demote() should
> be *moved* to
> org.jboss.util.LRUCachePolicy.ageOut
>
> This will allow people that reuse the LRUCachePolicy to not have an always
> growing map.
> The LRU for EnterpriseContexts overrides ageOut and the problem should be
> solved.
Ok, this works for me.
> BTW, the line that throws NPE should not do it (but maybe you modified the
> source so it refers to another part of the code).
Oh yes, I added a line of println. The right line number is
LRUCachePolicy:344.
Sebastien