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

Enums are not read correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1
    • Fix Version/s: 0.5
    • Component/s: Haskell - Compiler
    • Labels:
      None
    • Environment:

      All platforms

      Description

      The Haskell (and OCaml) generators emit incorrect code for enum deserilalization. The value counter is not reset to -1 before the deserialization function is generated.

        Attachments

        1. 0001--THRIFT-787-Fix-bug-in-enum-deserialization.patch
          1 kB
          Spiros Eliopoulos
        2. v2-thrift-read-enums-cleanup.patch
          18 kB
          Christian Lavoie

          Activity

            People

            • Assignee:
              clavoie Christian Lavoie
              Reporter:
              seliopou Spiros Eliopoulos
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: