[ 
https://issues.apache.org/jira/browse/AVRO-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pedro Cardoso Silva updated AVRO-2805:
--------------------------------------
    Description: 
Avro reflection is unable to generate a schema for the following definition:

{code:java} 
public class Definition {
    pubilc Map<String, Type>
}

public enum Type {
  A,
  B,
  C
}
{code}

{code:java}
// Test code
Schema schema = ReflectData.get().getSchema(Definition.class)
{code}

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

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

{code:java} 
public class Definition {
    pubilc Map<String, Type>
}

// In a separate file
public enum Type {
  A,
  B,
  C
}
{code}

{code:java}
// Test code
Schema schema = ReflectData.get().getSchema(Definition.class)
{code}

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


> Reflection-based schema not loading types 
> ------------------------------------------
>
>                 Key: AVRO-2805
>                 URL: https://issues.apache.org/jira/browse/AVRO-2805
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.1
>            Reporter: Pedro Cardoso Silva
>            Priority: Critical
>
> Avro reflection is unable to generate a schema for the following definition:
> {code:java} 
> public class Definition {
>     pubilc Map<String, Type>
> }
> public enum Type {
>   A,
>   B,
>   C
> }
> {code}
> {code:java}
> // Test code
> Schema schema = ReflectData.get().getSchema(Definition.class)
> {code}
> Fails with: 
> Undefined name: "FieldType"
> org.apache.avro.SchemaParseException: Undefined name: "Type"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to