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

ASF GitHub Bot updated AVRO-3164:
---------------------------------
    Labels: pull-request-available  (was: )

> 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
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.20.1#820001)

Reply via email to