summaryrefslogtreecommitdiff
path: root/test/ThriftTest.thrift
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2015-10-20 23:13:02 +0200
committerJens Geyer <jensg@apache.org>2015-10-20 23:17:38 +0200
commit40c28d3310ff5f18c4af085592ac658f56b8daeb (patch)
tree005d2eed3ca720cfdb57cc981464d75adf678d23 /test/ThriftTest.thrift
parentf2ab1346c6dc2290ef9b3290e1712e7987c2d562 (diff)
downloadthrift-40c28d3310ff5f18c4af085592ac658f56b8daeb.tar.gz
THRIFT-3393 Introducing i8 to provide consistent set of Thrift integers
Client: Compiler (general) Patch: Jens Geyer <jensg@apache.org> This closes #656
Diffstat (limited to 'test/ThriftTest.thrift')
-rw-r--r--test/ThriftTest.thrift9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift
index 8eef23cd7..f545227b6 100644
--- a/test/ThriftTest.thrift
+++ b/test/ThriftTest.thrift
@@ -86,7 +86,7 @@ struct Xtruct
struct Xtruct2
{
- 1: byte byte_thing,
+ 1: i8 byte_thing, // used to be byte, hence the name
2: Xtruct struct_thing,
3: i32 i32_thing
}
@@ -152,10 +152,11 @@ service ThriftTest
/**
* Prints 'testByte("%d")' with thing as '%d'
- * @param byte thing - the byte to print
- * @return byte - returns the byte 'thing'
+ * The types i8 and byte are synonyms, use of i8 is encouraged, byte still exists for the sake of compatibility.
+ * @param byte thing - the i8/byte to print
+ * @return i8 - returns the i8/byte 'thing'
*/
- byte testByte(1: byte thing),
+ i8 testByte(1: byte thing),
/**
* Prints 'testI32("%d")' with thing as '%d'