[
https://issues.apache.org/jira/browse/AVRO-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Skraba updated AVRO-3256:
------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Cherry-picked to
[branch-1.11|https://github.com/apache/avro/commit/6aa5791cd9505ff11056f09f95fdcc574c0629e1].
Thanks for the contribution!
> 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, spec, tools
> Affects Versions: 1.11.0
> Reporter: Oscar Westra van Holthe - Kind
> Assignee: Oscar Westra van Holthe - Kind
> Priority: Major
> Labels: javacc, pull-request-available
> Fix For: 1.11.1
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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)