ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4351) .NET: Use BinaryArrayIdentityResolver by default
Date Thu, 23 Mar 2017 08:35:41 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937927#comment-15937927
] 

Pavel Tupitsyn commented on IGNITE-4351:
----------------------------------------

Same as in Java IGNITE-4558, we should remove {{BinaryObjectBuilder.SetHashCode}}.

> .NET: Use BinaryArrayIdentityResolver by default
> ------------------------------------------------
>
>                 Key: IGNITE-4351
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4351
>             Project: Ignite
>          Issue Type: Improvement
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>              Labels: .NET, breaking-api
>             Fix For: 2.0
>
>
> Current legacy behavior calculates hash codes by calling Object.GetHashCode(), but equality
comparison is performed by comparing byte arrays in binary form, which is inconsistent and
can lead to unexpected behavior with user-defined keys.
> In 2.0 we should replace default behavior with ArrayResolver so that Equals and GetHashCode
are consistent.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message