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

list<> type with multiple items is not encoded properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.6.1
    • None
    • C# - Library
    • None

    Description

      thrift definition

      service Foo{
      list<i32> test()
      }

      c# implementation

      public List<int> test ()
      {
      return new List<int>

      { 42,4242 }

      ;
      }

      produces:
      [1,"test",2,0,{"0":{"lst":["i32",2,42],"4242"]}}

      reformatted:
      [1,"test",2,0,
      {
      "0":

      { "lst":["i32",2,42],"4242"] }

      }

      it works as expected with only one item in the list.

      [EDIT] Tried to correct formatting/intendations

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nilshu Nils Hügelmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: