ASF GitHub Bot commented on AVRO-2143:

cutting opened a new pull request #283: AVRO-2143. Fix Java reflect to stop 
using dollar sign in namespaces of nested classes.
URL: https://github.com/apache/avro/pull/283

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> 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
>            Priority: Major
> I used ReflectData to generate schemas containing inner classes. These 
> classes were named automatically by ReflectData with dollar ('$'), with, for 
> example com.company.avro.House$Type. Nevertheless @AvroAlias does not support 
> aliases containing '$' in names. In particulr, it fails in validateName in 
> Schema core class. The failure is correct given that AVRO name specs does 
> notinclude the '$' symbol. 
> I suppose that ReflectData should, for example, generate inner class names in 
> a different way, such as replacing '$' by dots ('.'), or it should fail.
> And a detail: Although I cannot add aliases with '$', I can still encode and 
> decode such objects and inner classes using that schema. 
> I think that it newer versions it is also happening.

This message was sent by Atlassian JIRA

Reply via email to