Artur Kalimullin created AVRO-3164:
--------------------------------------
Summary: 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
Reporter: Artur Kalimullin
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)