You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/05 13:17: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 ]
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)