[
https://issues.apache.org/jira/browse/AVRO-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14226692#comment-14226692
]
ASF subversion and git services commented on AVRO-1604:
-------------------------------------------------------
Commit 1641896 from [~cutting] in branch 'avro/trunk'
[ https://svn.apache.org/r1641896 ]
AVRO-1604. Java: Fix ReflectData.AllowNull to work with @Nullable annotations.
Contributed by Ryan Blue.
> 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)