THRIFT-894. java: Make default accessors for binary fields return byte[]; provide...
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 13 Sep 2010 15:42:36 +0000 (15:42 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 13 Sep 2010 15:42:36 +0000 (15:42 +0000)
commita7420b6593998776871d55cbf415a0531c76a012
tree9372057e8c93e9dab4e7e078db28e3a2f57cbf8a
parenta4c6d64e80e3d7f598ad97d213e83d66b7063a83
THRIFT-894. java: Make default accessors for binary fields return byte[]; provide new accessors to get ByteBuffer version

This patch causes the underlying ByteBuffer that backs a binary field to be hidden behind a default accessor that provides a byte[] interface. This should allow users who skipped 0.4 to update their generated code without breaking any of their other code. A new accessor has been added that allows a way down to the underlying ByteBuffer for those experts who want to take advantage.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996579 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc
lib/java/src/org/apache/thrift/TBaseHelper.java
lib/java/test/org/apache/thrift/TestTBaseHelper.java
lib/java/test/org/apache/thrift/TestTDeserializer.java