avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharmarke Aden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1201) CLONE - GenericRecord.toString can produce invalid JSON
Date Wed, 21 Nov 2012 19:55:58 GMT

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

Sharmarke Aden commented on AVRO-1201:
--------------------------------------

Here is an updated patch that contains Doug's recommendations. I also took the liberty to
change StringBuffer reference to StringBuiler and add Overridea annotations
                
> 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, vcs-diff4833874908267370412.patch
>
>
> 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

Mime
View raw message