[ https://issues.apache.org/jira/browse/THRIFT-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16915794#comment-16915794 ]
Ewan Higgs commented on THRIFT-234: ----------------------------------- Reopened as Thrift-4932 > 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 > Assignee: James E. King III > 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 was sent by Atlassian Jira (v8.3.2#803003)