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

Reflection-based schema not loading types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.9.1
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None

      Description

      Avro reflection is unable to generate a schema for the following definition:

       
      public class Definition {
          public Map<String, Type>
      }
      
      public enum Type {
        A,
        B,
        C
      }
      
      // Test code
      Schema schema = ReflectData.get().getSchema(Definition.class)
      

      Fails with:
      Undefined name: "FieldType"
      org.apache.avro.SchemaParseException: Undefined name: "Type"

        Attachments

          Activity

            People

            • Assignee:
              anhldbk Andy Le
              Reporter:
              pcless Pedro Cardoso Silva
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: