You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2013/04/07 22:13:15 UTC

[jira] [Updated] (THRIFT-234) Can't assign binary fields default values

     [ https://issues.apache.org/jira/browse/THRIFT-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier updated THRIFT-234:
-------------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: THRIFT-1920
    
> Can't assign binary fields default values
> -----------------------------------------
>
>                 Key: THRIFT-234
>                 URL: https://issues.apache.org/jira/browse/THRIFT-234
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: Java - Compiler
>            Reporter: Bryan Duxbury
>            Priority: Trivial
>
> The Thrift compiler treats binary and string fields the same. This means that if you want to give a binary field a default value, you have to give it a string. The code generated from this then tries to assign a byte array variable the value of a string, which doesn't work. 

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