hazelcast / hazelcast/hazelcast-csharp-client
Serialization error while using nested generic record. [API-1960]
- Dominant language
- C#
- Stars
- 107
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
When I try to put an generic record which has nested generic record to map, I get `System.NotSupportedException : Not supported field kind: Compact.
at Hazelcast.Serialization.SerializationService.WriteObject(ObjectDataOutput output, Object obj, Boolean isRootObject, Boolean withSchemas) in C:\Users\EmreYigit\Desktop\Projects\.net-client-forked\hazelcast-csharp-client\src\Hazelcast.Net\Serialization\SerializationService.ReadWrite.cs:line 284`
To reproduce:
Modified the test at
`Hazelcast.Tests.Serialization.Compact.GenericRecordTests.TestRemote` with nested generic record.
````csharp
var rec1 = GenericRecordBuilder.Compact("rec1")
.SetBoolean("bool", true)
.Build();
var rec0 = GenericRecordBuilder.Compact("rec0")
.SetBoolean("bool", true)
.SetInt32("int", 123)
.SetString("string", "hello")
.SetGenericRecord("rec1",rec1)
.Build();
var mapOfGenericRecord = await Client.GetMapAsync("generic-record-map");
// can set the IGenericRecord value
await mapOfGenericRecord.SetAsync(0, rec0);
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.