You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2013/05/06 22:50:15 UTC
[jira] [Commented] (AVRO-1275) GenericData's toString() method
generates the wrong JSON encoding for the bytes type
[ https://issues.apache.org/jira/browse/AVRO-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13650099#comment-13650099 ]
Doug Cutting commented on AVRO-1275:
------------------------------------
This is a bug, but fixing it would be an incompatible change, so should probably wait until release 1.8.
> GenericData's toString() method generates the wrong JSON encoding for the bytes type
> ------------------------------------------------------------------------------------
>
> Key: AVRO-1275
> URL: https://issues.apache.org/jira/browse/AVRO-1275
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Tom White
> Fix For: 1.8.0
>
>
> We discovered in AVRO-1274 that for bytes GenericData.toString(Object datum) incorrectly generates
> {noformat}
> { "bytes" : "A" }
> {noformat}
> rather than just {{"A"}} for the JSON encoding defined in the spec (http://avro.apache.org/docs/current/spec.html#json_encoding).
--
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