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

ASF GitHub Bot commented on IGNITE-5358:
----------------------------------------

GitHub user ptupitsyn opened a pull request:

    https://github.com/apache/ignite/pull/2048

    IGNITE-5358 .NET: Fix nullable enum field handling in binary objects

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ptupitsyn/ignite ignite-5358

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/2048.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2048
    
----
commit adf8d59c8fd979586b68c3aac1e7fe0511e84de4
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T12:50:34Z

    IGNITE-5358 .NET: Nullable enum field in binary object causes type cast 
exception

commit d4d0e4eed9dea9fa1cc930be1f7d90064a003e22
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:00:53Z

    wip

commit a7d5ec1936cab7c1f9beae23008434972719a799
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:05:28Z

    wip

commit 64b0e644bba8b3e1ee3b4f701b227ac796f8574f
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:07:32Z

    wip

commit 1d055602395546b49995f418c997c25d295f1b35
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:10:01Z

    wip

commit 56bcf72deeb6b65dec8220129ecebef5cb6e61d0
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:13:38Z

    wip reproducer done

commit 09f63b9409d98a9f5b80abb52fd771a9d7c1d44a
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:16:27Z

    wip

commit 1c9337f2cde926104b8357784cfdbddca03c6336
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:21:17Z

    wip

commit 4b9c9a60b4f752788d079112ecbb5ef626423059
Author: Pavel Tupitsyn <[email protected]>
Date:   2017-05-31T13:46:11Z

    Fix the bug.

----


> .NET: Nullable enum field in binary object causes type cast exception
> ---------------------------------------------------------------------
>
>                 Key: IGNITE-5358
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5358
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.0
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>              Labels: .NET
>             Fix For: 2.1
>
>
> Reproducer:
> {code}
> enum TestEnum
> {
>       TestValue1,
>       TestValue2
> };
> class TestClass
> {
>       public string Name { get; }
>       public TestEnum? EnumValue { get; }
>       public TestClass(string name, TestEnum? enumValue)
>       {
>               Name = name;
>               EnumValue = enumValue;
>       }
> }
> ...
> cache.Put("TestElem1", new TestClass("TestElem1", TestEnum.TestValue1));
> cache.Get("TestElem1");  // exception
> {code}
> Exception:
> {code}
> No coercion operator is defined between types 
> 'Apache.Ignite.Core.Impl.Binary.BinaryEnum' and 
> 'System.Nullable`1[UserQuery+TestEnum]'. 
> {code}



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

Reply via email to