diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2010-01-06 23:12:09 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2010-01-06 23:12:09 +0000 |
commit | 35565a4719679523779d946420992bde33a4987c (patch) | |
tree | 6ed14b92463c081d5a5c7f65231d74254f0ce4a6 /test/DebugProtoTest.thrift | |
parent | 3076fb8d791a07d6f4933bcfb7875ef0d27cb70e (diff) | |
download | thrift-35565a4719679523779d946420992bde33a4987c.tar.gz |
THRIFT-671. rb: Ruby compact protocol implementation gets mixed up when there are fields that don't fit in the delta space
This patch adds a test and a fix for the problem.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@896712 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 9cdb16d0f..dbce93ed6 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -327,3 +327,14 @@ typedef map<i32,i32> SomeMap struct StructWithASomemap { 1: required SomeMap somemap_field; } + +struct BigFieldIdStruct { + 1: string field1; + 45: string field2; +} + +struct BreaksRubyCompactProtocol { + 1: string field1; + 2: BigFieldIdStruct field2; + 3: i32 field3; +}
\ No newline at end of file |