You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Artur Kalimullin (Jira)" <ji...@apache.org> on 2021/06/25 07:44:00 UTC

[jira] [Updated] (AVRO-3164) Allow stringable types deserialization if java-class is specified

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

Artur Kalimullin updated AVRO-3164:
-----------------------------------
    Component/s: java

> Allow stringable types deserialization if java-class is specified
> -----------------------------------------------------------------
>
>                 Key: AVRO-3164
>                 URL: https://issues.apache.org/jira/browse/AVRO-3164
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Artur Kalimullin
>            Priority: Major
>
> Currently, compiler supports java-class and generates java classes with the given class. It works properly with serialization as toString() is being called, however, on deserialization compiler generates casting instead of calling a constructor with the string argument.
> It works with the ReflectData but not with the SpecificData which throws ClassCastException in runtime.
> To solve this, the same behaviour as ReflectData could be used (calling a constructor with a String argument)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)