Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1623

GenericData#validate() of enum: IndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.7
    • Fix Version/s: 1.8.0
    • Component/s: java
    • Labels:
      None

      Description

      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.

        Attachments

        1. GenericData.patch
          3 kB
          Jeffrey Mullins

          Activity

            People

            • Assignee:
              jmullins Jeffrey Mullins
              Reporter:
              jmullins Jeffrey Mullins
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: