[
https://issues.apache.org/jira/browse/AVRO-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734687#action_12734687
]
Doug Cutting commented on AVRO-76:
----------------------------------
> the "meta" field is just listed as an Object
It's a union between the Map<Utf8,ByteBuffer> and null. The Java code
generator is not yet smart enough to special case unions with null and
generates Object for all union types. So the right thing to do is handle null
here, since the metadata is optional. You should not need to handle
ClassCastException explicitly, since it should never happen, but null might.
> Add plug-in mechanism for manipulating per-call metadata
> --------------------------------------------------------
>
> Key: AVRO-76
> URL: https://issues.apache.org/jira/browse/AVRO-76
> Project: Avro
> Issue Type: Sub-task
> Components: java
> Reporter: George Porter
> Assignee: George Porter
> Attachments: AVRO-76.patch, AVRO-76.patch, AVRO-76.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.