[ https://issues.apache.org/jira/browse/AVRO-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734672#action_12734672 ]
George Porter commented on AVRO-76: ----------------------------------- One question I had, was when we read the handshake, the "meta" field is just listed as an Object. Thus, I did the following: try { sessMeta = (Map<Utf8, ByteBuffer>) handshake.meta; } catch (ClassCastException ce) { throw new AvroRuntimeException("Received improper session metadata type: " + ce); } Is that necessary, and if so, is catching ClassCastException the most efficient way to handle that situation? Your thoughts are appreciated. > 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.