[ https://issues.apache.org/jira/browse/AVRO-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14226803#comment-14226803 ]
Hudson commented on AVRO-1604: ------------------------------ SUCCESS: Integrated in AvroJava #502 (See [https://builds.apache.org/job/AvroJava/502/]) AVRO-1604. Java: Fix ReflectData.AllowNull to work with @Nullable annotations. Contributed by Ryan Blue. (cutting: rev 1641896) * /avro/trunk/CHANGES.txt * /avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java * /avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflectAllowNulls.java > 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)