You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/12/11 05:46:10 UTC
[jira] [Closed] (MAVIBOT-23) The BTree.insert() method does not
return a valid Value
[ 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)