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

Scott Carey commented on AVRO-1325:
-----------------------------------

One more bug in the AVRO-1274 implementation that will be fixed here:
Default values for bytes/fixed were not properly encoded.  A default of new 
byte[] {0, 1, -1} results in an exception due to lack of escaping.  If I use 
Jackson's escaping, we get a string "\u0000\u0000\uFFFF".  A bug in Jackson 
1.8.8 causes the 1 byte to not escape properly, and the code is casting byte to 
char without a 0xFF mask, so -1 becomes 655535 instead of 255.
                
> Enhanced Schema Builder API
> ---------------------------
>
>                 Key: AVRO-1325
>                 URL: https://issues.apache.org/jira/browse/AVRO-1325
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Scott Carey
>            Assignee: Scott Carey
>             Fix For: 1.7.5
>
>
> The schema builder from AVRO-1274 has a few key limitations.  I have proposed 
> changes to make before it is released and the public API is locked in.

--
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