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

unable to work with nested classes and reflection based API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: java
    • Labels:
      None

      Description

      It is currently not possible to work with nested classes and the reflection API. Only the package and classname are recorded. The test case that I'll attach to this issues writes this as the schema: {"type":"record","name":"BazRecord","namespace":"org.apache.avro","fields":[

      {"name":"nbr","type":"int"}

      ]}, even though it is a nested class. The reader then tries to instantiate org.apache.avro.BazRecord, while it should instantiate org.apache.avro.TestDataFileReflect$BazRecord.

        Attachments

        1. AVRO-101.patch
          2 kB
          Eelco Hillenius

          Issue Links

            Activity

              People

              • Assignee:
                ehillenius Eelco Hillenius
                Reporter:
                ehillenius Eelco Hillenius
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: