Bug in caching in the BTree?

"Joel Nelson" <[email protected]>
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
As far as I can tell, the WeakHashMap cache in
org.apache.xindice.core.filer.BTree is not being used correctly.

The value objects in the cache are WeakReference objects, and this
seems to make no sense considering what WeakHashMap is intended to do.
(Allow garbage collection of key and value objects when the key object
has no more strong references to it)

Can someone please audit this code? Maybe I am way off.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.