Details
-
Sub-task
-
Status: Closed
-
Trivial
-
Resolution: Abandoned
-
None
-
None
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
THRIFT-4932 Using a default string on a binary field results in invalid Java code.
- Resolved