summaryrefslogtreecommitdiff
path: root/test/ThriftTest.thrift
diff options
context:
space:
mode:
authorBryan Duxbury <bryanduxbury@apache.org>2011-12-27 22:26:59 +0000
committerBryan Duxbury <bryanduxbury@apache.org>2011-12-27 22:26:59 +0000
commita3df547c84b463934589beac7bc37b272b34d4ea (patch)
tree1cbdecd36be27ed2800341aaba5da941651229fd /test/ThriftTest.thrift
parente7bec408825d53bf9d3e8a10c8afd889cdb28814 (diff)
downloadthrift-a3df547c84b463934589beac7bc37b272b34d4ea.tar.gz
THRIFT-317. java: Issues with Java struct validation
Nested structs will now be validated before serialization starts. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1225035 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/ThriftTest.thrift')
-rw-r--r--test/ThriftTest.thrift9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift
index 633be1f6a..b9b7fdaf5 100644
--- a/test/ThriftTest.thrift
+++ b/test/ThriftTest.thrift
@@ -233,3 +233,12 @@ struct BoolTest {
1: optional bool b = true;
2: optional string s = "true";
}
+
+struct StructA {
+ 1: required string s;
+}
+
+struct StructB {
+ 1: optional StructA aa;
+ 2: required StructA ab;
+} \ No newline at end of file