Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.6.1
-
None
-
None
-
Windows 7
Description
1. Create a file called test.thrift with the following content:
struct TestStruct {
1: i32 id
2: string name
}
service TestService
{ list<TestStruct> GetTestStructs(1: i32 id) }2. Execute the following at the command line: thrift-0.6.1.exe --gen csharp test.thrift
3. Open gen-csharp\TestService.cs and scroll down to line 298
Note that oprot.WriteListEnd(); is inside the foreach loop. This means that this code will fail for any List that has more than one item.
Attachments
Issue Links
- is a clone of
-
THRIFT-1120 proto.WriteListEnd being called in the wrong place
- Closed