directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAVIBOT-23) The BTree.insert() method does not return a valid Value
Date Sat, 07 Dec 2013 00:34:35 GMT
Emmanuel Lecharny created MAVIBOT-23:
----------------------------------------

             Summary: The BTree.insert() method does not return a valid Value
                 Key: MAVIBOT-23
                 URL: https://issues.apache.org/jira/browse/MAVIBOT-23
             Project: Mavibot
          Issue Type: Bug
    Affects Versions: 1.0.0-M2
            Reporter: Emmanuel Lecharny
            Assignee: Emmanuel Lecharny
            Priority: Critical
             Fix For: 1.0.0-M3


Currently, the insert() method is expected to return a V, but instead returns a ValueHolder<V>.
This is due to the wrong cast :

        InsertResult<K, V> result = new ModifyResult<K, V>( newLeaf, ( V ) valueHolder
);

in the replaceElement method.

I don't know why in hell I casted a ValueHolder to a V... Most certainly to shut up the compiler
which was (obvisouly rightly) complaining. Blame me !



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message