diff options
author | Neil Williams <neil@reddit.com> | 2021-02-16 15:12:15 -0800 |
---|---|---|
committer | Yuxuan 'fishy' Wang <fishywang@gmail.com> | 2021-02-16 16:31:00 -0800 |
commit | 055fe67ec1856d25f7ad3b98b5cd172fdf8e2c70 (patch) | |
tree | 062bf11a4e4dff23d87121e68022eb6e393699f7 /test/DebugProtoTest.thrift | |
parent | 526a1acf3b870d3b292423e19b9bb9bb0d18c0c3 (diff) | |
download | thrift-055fe67ec1856d25f7ad3b98b5cd172fdf8e2c70.tar.gz |
THRIFT-5352: Fix construction of Py exceptions with no fields
Client: py
When no fields are present, we don't get the special constructor that
uses __setattr__ to avoid these checks. So the default constructor sets
message normally and triggers the anti-mutation tripwires.
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 1ab0f6aea..5d0face4b 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -245,6 +245,8 @@ exception MutableException { 1: string msg; } (python.immutable = "false") +exception ExceptionWithoutFields {} + service ServiceForExceptionWithAMap { void methodThatThrowsAnException() throws (1: ExceptionWithAMap xwamap); } |