You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Miguel (JIRA)" <ji...@apache.org> on 2018/02/12 16:13:00 UTC

[jira] [Created] (AVRO-2143) ReflectData should determine inner class names in a different way.

Miguel created AVRO-2143:
----------------------------

             Summary: ReflectData should determine inner class names in a different way.
                 Key: AVRO-2143
                 URL: https://issues.apache.org/jira/browse/AVRO-2143
             Project: Avro
          Issue Type: Improvement
    Affects Versions: 1.7.7
            Reporter: Miguel


I used ReflectData to generate schemas containing inner classes. These classes were named automatically by ReflectData with dollar ('$'). Nevertheless @AvroAlias does not support aliases containing '$' in names. It fails in validateName in Schema core class. The failure is correct given that AVRO name specs state that the names cannot contain '$'. 

Therefore, ReflectData should, for example, generate inner class names in a different way, such as replacing '$' by dots ('.'), or should fail.

Although I cannot add aliases, I can still encode and decode such objects and inner classes using that schema. 

I think that newer versions are also affected.
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)