diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2010-06-23 21:17:48 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2010-06-23 21:17:48 +0000 |
commit | 162b3ac6465d598e834609c8fae5b341f8e941d8 (patch) | |
tree | 6d546685b4c03ba11ca5e13b4d5f3f7b41df6ea9 /test/DebugProtoTest.thrift | |
parent | 656683c776f594da98b8df6d00fcb2a316d56171 (diff) | |
download | thrift-162b3ac6465d598e834609c8fae5b341f8e941d8.tar.gz |
THRFIT-804. java: CompareTo is broken for unions set to map, set, or list
This patch fixes TUnion's compareTo, and factors out the standard part of the comparison to TBaseHelper.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 5e361d217..c67fbcb0e 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -299,6 +299,8 @@ union TestUnion { 4: list<RandomStuff> struct_list; 5: i32 other_i32_field; 6: SomeEnum enum_field; + 7: set<i32> i32_set; + 8: map<i32, i32> i32_map; } union TestUnionMinusStringField { @@ -307,6 +309,8 @@ union TestUnionMinusStringField { 4: list<RandomStuff> struct_list; 5: i32 other_i32_field; 6: SomeEnum enum_field; + 7: set<i32> i32_set; + 8: map<i32, i32> i32_map; } union ComparableUnion { @@ -339,4 +343,5 @@ struct BreaksRubyCompactProtocol { 1: string field1; 2: BigFieldIdStruct field2; 3: i32 field3; -}
\ No newline at end of file +} + |