[ 
https://issues.apache.org/jira/browse/AVRO-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Khrystyna Popadyuk updated AVRO-3685:
-------------------------------------
    Description: 
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: 
https://github.com/KhrystynaPopadyuk/avro/blob/ced11f5cb41005af0c3747c60927fd0cbafa763b/lang/csharp/src/apache/test/Reflect/ClassCacheTests/LoadClassCacheTests.cs#L27

  was:
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:


> .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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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: 
> https://github.com/KhrystynaPopadyuk/avro/blob/ced11f5cb41005af0c3747c60927fd0cbafa763b/lang/csharp/src/apache/test/Reflect/ClassCacheTests/LoadClassCacheTests.cs#L27



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to