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] [Closed] (MAVIBOT-23) The BTree.insert() method does not return a valid Value
Date Wed, 11 Dec 2013 04:46:10 GMT

     [ https://issues.apache.org/jira/browse/MAVIBOT-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny closed MAVIBOT-23.
------------------------------------


> 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.4#6159)

Mime
View raw message