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

Incorrect error message printed for null or negative keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1
    • Compiler (General)
    • None
    • MinGW, Windows

    • Patch Available

    Description

      The following IDL file

      struct test {
        0 : string zero,
        1 : string one,
        2 : string two
      }
      

      produced this Output:

      c:\> thrift --allow-neg-keys -gen csharp .\testcase.thrift
      
      Scanning testcase for includes
      [WARNING:testcase:2] Negative field key (0) differs from what would be auto-assigned by thrift (0).
      

      which is obviously wrong, since the latter value is of course -1, but not 0.

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: