You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Popov (JIRA)" <ji...@apache.org> on 2017/10/13 15:30:00 UTC

[jira] [Created] (IGNITE-6627) .NET: cache deserialization fail with complex value type & enum

Alexey Popov created IGNITE-6627:
------------------------------------

             Summary: .NET: cache deserialization fail with complex value type & enum
                 Key: IGNITE-6627
                 URL: https://issues.apache.org/jira/browse/IGNITE-6627
             Project: Ignite
          Issue Type: Bug
          Components: platforms
    Affects Versions: 2.2
            Reporter: Alexey Popov


There is an deserialization issue with complex structure.

Please see the sample code below:
{noformat}
    public enum SampleEnum : byte
    {
        One = 0,
        Two = 1,
        Three = 2
    }
{noformat}
{noformat}
                var cache = ignite.GetOrCreateCache<string, Dictionary<SampleEnum, Dictionary<int, int>>>("mySampleCache");
                cache.Put("DictData", Dict);
                var result = cache.Get("DictData");                
{noformat}

{{cache.Get("DictData"); }} fails with eception:
{"The constructor to deserialize an object of type 'System.Collections.Generic.ObjectEqualityComparer`1[SampleProject.SampleEnum]' was not found."}

if we change 
Dictionary<SampleEnum, Dictionary<int, int>>
to 
Dictionary<int, Dictionary<int, int>>
then everything is ok



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)