Oscar Westra van Holthe - Kind created AVRO-3256:
----------------------------------------------------

             Summary: IDL: annotations on type references change the referenced 
type
                 Key: AVRO-3256
                 URL: https://issues.apache.org/jira/browse/AVRO-3256
             Project: Apache Avro
          Issue Type: Bug
          Components: java, tools
    Affects Versions: 1.11.0
            Reporter: Oscar Westra van Holthe - Kind
            Assignee: Oscar Westra van Holthe - Kind


The IDL compiler allows annotations on type references, and applies them on the 
referenced type.

As can be seen in the test output file {{simple.avpr}}, the type {{MD5}} has 
the property {{"foo"="bar"}}.

But in the input file {{simple.avdl}}:
* The type definition in lines 39-40 has no such property
* Line 53 adds the property to the type for the field {{hash}},
* But it's also silently added to the  type for the field {{nullableHash}} in 
line 55

Solution: do not accept annotations for type references.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to