[ 
https://issues.apache.org/jira/browse/AVRO-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13638284#comment-13638284
 ] 

Doug Cutting commented on AVRO-1308:
------------------------------------

The fix looks good.  We should also add something to test.proto that triggers 
this bug, no?
                
> Don't call hasField on a repeated message
> -----------------------------------------
>
>                 Key: AVRO-1308
>                 URL: https://issues.apache.org/jira/browse/AVRO-1308
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Steve Zesch
>         Attachments: AVRO-1308.patch
>
>
> If the hasField method of a Message object is called with an argument that is 
> a repeatable field, an exception is thrown. The ProtobufData getField method 
> does not check to see if a field is repeatable before calling hasField.
> protobuf hasField Java doc:
> https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/MessageOrBuilder#hasField(com.google.protobuf.Descriptors.FieldDescriptor)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to