[
https://issues.apache.org/jira/browse/AVRO-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14250817#comment-14250817
]
Hudson commented on AVRO-1623:
------------------------------
SUCCESS: Integrated in AvroJava #506 (See
[https://builds.apache.org/job/AvroJava/506/])
AVRO-1623. Java: Fix GenericData#validate to correctly resolve unions.
Contributed by Jeffrey Mullins. (cutting: rev 1646363)
* /avro/trunk/CHANGES.txt
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
*
/avro/trunk/lang/java/avro/src/test/java/org/apache/avro/generic/TestGenericData.java
> GenericData#validate() of enum: IndexOutOfBoundsException
> ---------------------------------------------------------
>
> Key: AVRO-1623
> URL: https://issues.apache.org/jira/browse/AVRO-1623
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.7
> Reporter: Jeffrey Mullins
> Assignee: Jeffrey Mullins
> Fix For: 1.8.0
>
> Attachments: GenericData.patch
>
>
> When invoking GenericData.get().validate() with a union schema containing
> multiple record schemas an IndexOutOfBoundsException is possible.
> The exception results under the following conditions:
> 1) Union contains multiple record schemas
> 2) The first record schema in the union contains more fields than
> subsequentrecord schemas
> 3) validate() is invoked with the union schema and a record of one of the
> subsequent record schemas.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)