avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Mullins (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1623) GenericData#validate() of enum: IndexOutOfBoundsException
Date Tue, 16 Dec 2014 20:59:13 GMT
Jeffrey Mullins created AVRO-1623:

             Summary: 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

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

View raw message