You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2014/11/14 02:12:33 UTC

[jira] [Commented] (AVRO-1604) ReflectData.AllowNull fails to generate schemas when @Nullable is present.

    [ https://issues.apache.org/jira/browse/AVRO-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211648#comment-14211648 ] 

Ryan Blue commented on AVRO-1604:
---------------------------------

Thanks!

> ReflectData.AllowNull fails to generate schemas when @Nullable is present.
> --------------------------------------------------------------------------
>
>                 Key: AVRO-1604
>                 URL: https://issues.apache.org/jira/browse/AVRO-1604
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Ryan Blue
>            Assignee: Ryan Blue
>             Fix For: 1.8.0
>
>         Attachments: AVRO-1604-1.patch
>
>
> The {{@Nullable}} annotation causes a failure because the {{makeNullable(Schema)}} method assumes that the type passed in is not already a union. When it is a union, either from using {{Nullable}}, {{AvroSchema}}, or a {{Union}}-annotated type, an exception is thrown that unions can't contain unions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)