diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2009-11-11 21:01:35 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2009-11-11 21:01:35 +0000 |
commit | e2e4ea1dcf09bdbf5bc2f270812ae2a3ca69c02b (patch) | |
tree | 4f910afa1552dafc23e1b20d3bb90d46c7602449 /test/DebugProtoTest.thrift | |
parent | 7948a66cfc6d164cb27da71360a270838a7468c2 (diff) | |
download | thrift-e2e4ea1dcf09bdbf5bc2f270812ae2a3ca69c02b.tar.gz |
THRIFT-624. java: compareTo is broken for Unions with binary fields
This patch adds a special case for byte[] values in TUnion. It also fixes a related bug in TBaseHelper for comparing two byte arrays.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@835065 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 48df1fc8c..5b2f672e6 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -263,6 +263,11 @@ union TestUnion { 5: i32 other_i32_field; } +union ComparableUnion { + 1: string string_field; + 2: binary binary_field; +} + struct StructWithAUnion { 1: TestUnion test_union; } |