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 8FE75D023 for ; Sun, 11 Nov 2012 00:49:13 +0000 (UTC) Received: (qmail 73972 invoked by uid 500); 11 Nov 2012 00:49:13 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 73885 invoked by uid 500); 11 Nov 2012 00:49:12 -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 73868 invoked by uid 99); 11 Nov 2012 00:49:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2012 00:49:12 +0000 Date: Sun, 11 Nov 2012 00:49:12 +0000 (UTC) From: "Sharmarke Aden (JIRA)" To: dev@avro.apache.org Message-ID: <1684087920.97241.1352594952569.JavaMail.jiratomcat@arcas> In-Reply-To: <39845620.92143.1352476813117.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (AVRO-1201) CLONE - GenericRecord.toString can produce invalid JSON 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-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sharmarke Aden updated AVRO-1201: --------------------------------- Attachment: avro-1201.patch Here's an updated patch that contains changes suggested by Doug. > CLONE - GenericRecord.toString can produce invalid JSON > ------------------------------------------------------- > > Key: AVRO-1201 > URL: https://issues.apache.org/jira/browse/AVRO-1201 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.7.2 > Reporter: Sharmarke Aden > Assignee: Jay Kreps > Attachments: avro-1201.patch, avro-1201.patch, Avro-1201-TestCase.tar.gz > > > The GenericData.toString method can produce invalid JSON. The problem is that enums are printed without quotes, as in > {"emum_field":a} > instead of > {"enum_field":"a"} -- 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