You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/01/23 15:59:26 UTC

[jira] [Commented] (IGNITE-4592) .NET: Binary enums are handled incorrectly

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

Pavel Tupitsyn commented on IGNITE-4592:
----------------------------------------

We should probably write all enums as enums, even unregistered.

> .NET: Binary enums are handled incorrectly
> ------------------------------------------
>
>                 Key: IGNITE-4592
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4592
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.8
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>              Labels: .NET
>             Fix For: 1.9
>
>
> * BinaryEnum is represented as {{int typeId}} + {{int value}}
> * BinaryEnumArray is represented as {{int typeId}} + {{int[] value}}
> In most cases we handle this incorrectly, using only {{int value}}:
> * {{BinaryObjectBuilder.WriteAsPredefined}} 
> * {{BinarySystemHandlers.*EnumArray}}
> etc
> Add tests thich verify that .NET binary enum handling is consistent with Java.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)