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

Enums are not read correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.1
    • 0.5
    • Haskell - Compiler
    • None
    • 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. v2-thrift-read-enums-cleanup.patch
          18 kB
          Christian Lavoie
        2. 0001--THRIFT-787-Fix-bug-in-enum-deserialization.patch
          1 kB
          Spiros Eliopoulos

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: