You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Khrystyna Popadyuk (Jira)" <ji...@apache.org> on 2022/12/06 02:36:00 UTC
[jira] [Created] (AVRO-3685) .NET/C#: ClassCash can not load two types with the compex type properties that has same name but different type
Khrystyna Popadyuk created AVRO-3685:
----------------------------------------
Summary: .NET/C#: ClassCash can not load two types with the compex type properties that has same name but different type
Key: AVRO-3685
URL: https://issues.apache.org/jira/browse/AVRO-3685
Project: Apache Avro
Issue Type: Bug
Reporter: Khrystyna Popadyuk
When load two types that have complex type properties with:
* same name
* different type
Only first one is loaded. As a result only one type can be serialized or deserialized.
It happens because of this check [https://github.com/KhrystynaPopadyuk/avro/blob/dee749bde457ba8760e0e5e1e2c1d1844610f2ee/lang/csharp/src/apache/main/Reflect/ClassCache.cs#L223]
That code check load or not type base on property name.
Unit test that illustrate bug:
--
This message was sent by Atlassian Jira
(v8.20.10#820010)