directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <>
Subject Re: [ApacheDS][AvlTreeMap] insert() fails to replace old value
Date Wed, 01 Apr 2009 18:49:08 GMT
hi Alex,

    Thanks for reporting this, have fixed at revision [1].

    I think there is no way with generics that we can return the replaced value V
    cause the signature of insert is - *K* insert( K, V )


Kiran Ayyagari

Alex Karasulu wrote:
> Hi Kiran,
> I have a problem you might be able to help me with.  It seems the 
> AvlTreeMap does not replace old values when someone inserts a K/V pair 
> using the same key.  I've created a simple test case which is now being 
> ignored in AvlTreeMap on my branch.  Here's the commit for the test:
> <>
> If you can look at this and fix fast great but if not I can fix as 
> well.  Just have not ventured into the AVL tree code just yet. 
> Thanks,
> Alex

View raw message