Hello All,

I'm currently working on PR to migrate OpenJpa to latest commons-collections4
During this work I noticed commons-collections4 API was changed

After discussion in commons mailing list [1] I have proposed the PR
[2] to commons collections
During writing the test for this changes I noticed
org.apache.commons.collections4.map.ReferenceMap can be cleaned up and
method purge will not be called ...

As far as I can understand
org.apache.openjpa.lib.util.ReferenceHashMap was designed to call
keyExpired/valueExpired in case key/value were expired, and these
methods will not be called in case Map will be auto-clean-up by GC. Is
this OK?

[1] https://markmail.org/thread/tshcd4d54nxrvgbu
[2] https://github.com/apache/commons-collections/pull/51

-- 
WBR
Maxim aka solomax

Reply via email to