[
https://issues.apache.org/jira/browse/GEODE-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Blake Bender closed GEODE-2835.
-------------------------------
> 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 Barrett
> Priority: Major
> Fix For: 1.13.0
>
>
> 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
(v8.3.4#803005)