"bstansberry(a)jboss.com" wrote : Oh, but my class above is intended to be passed
as a key to WeakHashMap. The ReferenceQueue polling will remove the only strong ref to
the Key, at which point the WeakHashMap will do its normal thing and make the Key/value
pair eligible for removal.
IMO it would be better to connect the logic to the map, then the entry is cleared in one
pass, and you aren't tied to a particular map implementation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152047#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...