You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/12/22 01:47:01 UTC

[jira] [Closed] (THRIFT-1833) Thrift generates incorrect C++ writer for union

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

James E. King, III closed THRIFT-1833.
--------------------------------------
       Resolution: Duplicate
         Assignee: Jens Geyer
    Fix Version/s: 0.11.0

> Thrift generates incorrect C++ writer for union
> -----------------------------------------------
>
>                 Key: THRIFT-1833
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1833
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Compiler
>    Affects Versions: 0.9
>            Reporter: Alan Choi
>            Assignee: Jens Geyer
>             Fix For: 0.11.0
>
>         Attachments: Thrift-1833.diff
>
>
> The generated union struct c++ writer would write all union fields. This is incorrect. It should only write the field that has been set.
> It causes incompatibility between c++ and Java. A union written by C++ side cannot be read by the Java side.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)