Thanks a lot for the answer,

OpenJPA ReferenceHashMap overrides purge method to be able to call
custom methods keyExpired/valueExpired [1]
I see no way to migrate this code without massive copy/paste or reflection ...

Maybe you can suggest something?
Or maybe commons-collections API can be enhanced so this task will be trivial :)

https://github.com/apache/openjpa/blob/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/ReferenceHashMap.java#L138

On Mon, 3 Sep 2018 at 20:03, Julio Oliveira
<[email protected]> wrote:
>
> What is realy your problem??..
>
> On Sat, Sep 1, 2018, 5:46 AM Maxim Solodovnik <[email protected]> wrote:
>
> > Hello,
> >
> > I'm trying to migrate code of Apache OpenJPA from commons-collections
> > to commons-collections4
> >
> > The only real issue so far with migrating this class
> >
> > https://github.com/apache/openjpa/blob/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/ReferenceHashMap.java#L112
> >
> > code of commons-collections4 is more restrictive could you please
> > suggest how custom purge can be implemented?
> >
> > --
> > WBR
> > Maxim aka solomax
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >



-- 
WBR
Maxim aka solomax

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to