diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2011-12-27 22:26:59 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2011-12-27 22:26:59 +0000 |
commit | a3df547c84b463934589beac7bc37b272b34d4ea (patch) | |
tree | 1cbdecd36be27ed2800341aaba5da941651229fd /test/ThriftTest.thrift | |
parent | e7bec408825d53bf9d3e8a10c8afd889cdb28814 (diff) | |
download | thrift-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.thrift | 9 |
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 |