summaryrefslogtreecommitdiff
path: root/cpp/src/slice2sl/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2sl/Gen.cpp')
-rwxr-xr-xcpp/src/slice2sl/Gen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/slice2sl/Gen.cpp b/cpp/src/slice2sl/Gen.cpp
index 928c019f67d..7f90053584a 100755
--- a/cpp/src/slice2sl/Gen.cpp
+++ b/cpp/src/slice2sl/Gen.cpp
@@ -2678,7 +2678,6 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p)
_out << eb;
_out << nl << "catch(System.InvalidCastException)";
_out << sb;
- _out << nl << "Ice.UnexpectedObjectException ex = new Ice.UnexpectedObjectException();";
_out << nl << "ret__ = null;";
_out << nl << "IceInternal.Ex.throwUOE(ret___PP.type(), ret___PP.value.ice_id());";
_out << eb;
@@ -3438,7 +3437,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
{
_out << nl << "catch(Ice.UserException ex__)";
_out << sb;
- _out << nl << "ice_exception(ex__);";
+ _out << nl << "exception_(ex__);";
_out << nl << "return;";
_out << eb;
}