Jacob S. Barrett created GEODE-2835:
---------------------------------------

             Summary: Autoboxing unsigned primitives in .NET results in stack 
overflow.
                 Key: GEODE-2835
                 URL: https://issues.apache.org/jira/browse/GEODE-2835
             Project: Geode
          Issue Type: Bug
          Components: native client
            Reporter: Jacob S. Barrett


When using a PdxSerializer, like ReflectionBasedPdxSerializer that writes 
unsigned primitive types to fields it results in autoboxing those types and 
looping them back to the PdxSerializer. This can result in an infinite 
recursion and stack overflow. 

{noformat}
Serializer.RegisterPdxSerializer(new ReflectionBasedPdxSerializer());
region.put("a", new Guid());
{noformat}

Guid contains several fields, some of which are {{unsigned char}} which autobox 
to {{System::Byte}}, this gets forwarded back to the auto pdx serializer which 
sees field {{unsigned char m_value}} and autoboxes it again to {{System::Byte}} 
and ......





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

Reply via email to