diff options
author | Alex Kormukhin <a.kormukhin.github@yandex.ru> | 2022-02-18 21:04:14 +0300 |
---|---|---|
committer | Jens Geyer <Jens-G@users.noreply.github.com> | 2022-03-02 22:14:55 +0100 |
commit | c9b7bd7b1285e8feb902daa208eacd7655a380ee (patch) | |
tree | af1db4cfe5c81b8b1eec4fa4d0be81fe0c5ed64f /test | |
parent | 8ab86c3303a8157ecfed6ff588d71e6e13dd7017 (diff) | |
download | thrift-c9b7bd7b1285e8feb902daa208eacd7655a380ee.tar.gz |
THRIFT-5519 Java async client loses exceptions in void methods
Client: java
(cherry picked from commit c4d3e36ed4db97fb6213cc13a4e611a4e658b4b7)
Diffstat (limited to 'test')
-rwxr-xr-x | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/VoidMethExceptionsTest.thrift | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 2199f1e11..6bf12b813 100755 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -167,6 +167,7 @@ EXTRA_DIST = \ UnsafeTypes.thrift \ Service.thrift \ SpecificNameTest.thrift \ + VoidMethExceptionsTest.thrift \ partial/thrift_test_schema.thrift \ known_failures_Linux.json \ test.py \ diff --git a/test/VoidMethExceptionsTest.thrift b/test/VoidMethExceptionsTest.thrift new file mode 100644 index 000000000..fc759767f --- /dev/null +++ b/test/VoidMethExceptionsTest.thrift @@ -0,0 +1,13 @@ +namespace java thrift.test.voidmethexceptions + +exception TExampleException { + 1: required string message; +} + +service TAppService01 { + string returnString(1: string msg, 2: bool throwException) throws (1:TExampleException error); + void returnVoidThrows(1: string msg, 2: bool throwException) throws (1:TExampleException error); + void returnVoidNoThrowsRuntimeException(1: string msg, 2: bool throwException); + void returnVoidNoThrowsTApplicationException(1: string msg, 2: bool throwException); + oneway void onewayVoidNoThrows(1: string msg, 2: bool throwException); +} |