Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1833

Thrift generates incorrect C++ writer for union

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.9
    • 0.11.0
    • C++ - Compiler
    • None

    Description

      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.

      Attachments

        1. Thrift-1833.diff
          10 kB
          Alan Choi

        Issue Links

          Activity

            People

              jensg Jens Geyer
              alan@cloudera.com Alan Choi
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: