diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-08-30 14:12:13 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-08-30 14:12:13 +0200 |
commit | 95c5034278793e4a3f5dda9cec85b6f24b736756 (patch) | |
tree | 9cad293e2fe678f296ba94be0efa3c82e99118c0 /cpp/test/Ice/invoke/BlobjectI.cpp | |
parent | Ported interceptor and ICE-6980 changes to java-compat (diff) | |
download | ice-95c5034278793e4a3f5dda9cec85b6f24b736756.tar.bz2 ice-95c5034278793e4a3f5dda9cec85b6f24b736756.tar.xz ice-95c5034278793e4a3f5dda9cec85b6f24b736756.zip |
ICE-6980 - Removed server-side user exception checks in Objective-C
Diffstat (limited to 'cpp/test/Ice/invoke/BlobjectI.cpp')
-rw-r--r-- | cpp/test/Ice/invoke/BlobjectI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/test/Ice/invoke/BlobjectI.cpp b/cpp/test/Ice/invoke/BlobjectI.cpp index b23d44dbc5c..16e6ef02a4f 100644 --- a/cpp/test/Ice/invoke/BlobjectI.cpp +++ b/cpp/test/Ice/invoke/BlobjectI.cpp @@ -38,6 +38,10 @@ invokeInternal(Ice::InputStream& in, vector<Ice::Byte>& outEncaps, const Ice::Cu } else if(current.operation == "opException") { + if(current.ctx.find("raise") != current.ctx.end()) + { + throw Test::MyException(); + } Test::MyException ex; out.writeException(ex); out.endEncapsulation(); @@ -130,7 +134,7 @@ BlobjectArrayAsyncI::ice_invokeAsync(pair<const Ice::Byte*, const Ice::Byte*> in } #else void -BlobjectAsyncI::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& cb, const vector<Ice::Byte>& inEncaps, +BlobjectAsyncI::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& cb, const vector<Ice::Byte>& inEncaps, const Ice::Current& current) { Ice::InputStream in(current.adapter->getCommunicator(), current.encoding, inEncaps); |