summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index e84ca86598a..f09f491f63f 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -1233,7 +1233,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
{
if(p->isLocal())
{
- out << "Ice.LocalException";
+ out << "Ice.RuntimeException";
}
else
{
@@ -2053,7 +2053,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "__rethrowException(__ex.get());";
}
out << eb;
- out << nl << "catch(Ice.LocalException __ex)";
+ out << nl << "catch(Ice.RuntimeException __ex)";
out << sb;
out << nl << "__cnt = __handleException(__ex, __cnt);";
out << eb;
@@ -3192,11 +3192,11 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p)
//
// No need to catch Ice.UserException because it's not possible in Java
//
- out << nl << "catch(Ice.LocalException __ex)";
+ out << nl << "catch(Ice.RuntimeException __ex)";
out << sb;
out << nl << "throw __ex;";
out << eb;
- out << nl << "catch(RuntimeException __ex)";
+ out << nl << "catch(java.lang.RuntimeException __ex)";
out << sb;
out << nl << "Ice.UnknownException __e = new Ice.UnknownException();";
out << nl << "__e.initCause(__ex);";