Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AFC210E53 for ; Mon, 22 Apr 2013 17:25:17 +0000 (UTC) Received: (qmail 65622 invoked by uid 500); 22 Apr 2013 17:25:16 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 65533 invoked by uid 500); 22 Apr 2013 17:25:16 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 65301 invoked by uid 99); 22 Apr 2013 17:25:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 17:25:16 +0000 Date: Mon, 22 Apr 2013 17:25:16 +0000 (UTC) From: "Steve Zesch (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AVRO-1308) Don't call hasField on a repeated message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Zesch updated AVRO-1308: ------------------------------ Attachment: cnfe_protobuf_stack_trace.txt > 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