commit | 38087708b5ca5a575bb3bcbbf3c24ab181e1cfc1 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Thu Mar 01 23:41:09 2012 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Thu Mar 01 23:41:09 2012 +0000 |
tree | 2057059de4427c7e55a0043eeb7a354d1ad31f88 | |
parent | 9be7b3886027509c8c68f79fd8ac60c0005d09e2 [diff] |
THRIFT-1529. java: TupleProtocol can unintentionally include an extra byte in bit vectors when number of optional fields is an integral of 8 This patch harmonizes the math between writeBitSet and readBitSet to eliminate the mismatch in number of bytes calculation, allowing structs to be serialized correctly. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295995 13f79535-47bb-0310-9956-ffa450edef68