[
https://issues.apache.org/jira/browse/THRIFT-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295923#comment-14295923
]
Johannes Martinsson commented on THRIFT-2189:
---------------------------------------------
By the way, if the union members are not nullable, say instead if they were
bytes themselves. Then we still have the same issue of all members being
written to the wire, but there will be no runtime panic, or other error to
indicate that anything went wrong. Instead the other end of your wire will
probably blow up.
Example output when setting one byte member of a two byte member union:
{code}
Written: []byte{0x3, 0x0, 0x1, 0x77, 0x3, 0x0, 0x2, 0x0, 0x0}
{code}
> Go does not support "union" type
> --------------------------------
>
> Key: THRIFT-2189
> URL: https://issues.apache.org/jira/browse/THRIFT-2189
> Project: Thrift
> Issue Type: Bug
> Components: Go - Compiler
> Reporter: Jack L
> Assignee: Jens Geyer
> Fix For: 1.0
>
>
> Go thrift compiler does not support union types
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)