summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-29 21:02:37 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-29 21:02:37 +0000
commitcc0ddc7270b434a0ba01f918477d1f46f9324ec2 (patch)
tree718f0c457eedadea0a439bfbc42bf81f6b5122f0 /cpp/src/slice2java/Gen.cpp
parentlots of fixes (diff)
downloadice-cc0ddc7270b434a0ba01f918477d1f46f9324ec2.tar.bz2
ice-cc0ddc7270b434a0ba01f918477d1f46f9324ec2.tar.xz
ice-cc0ddc7270b434a0ba01f918477d1f46f9324ec2.zip
fixes
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp27
1 files changed, 2 insertions, 25 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index 47edc78d15b..16edaee1182 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -3157,11 +3157,11 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "catch(ClassCastException __ex)";
out << sb;
out << nl << "Ice.OperationNotExistException __opEx = new Ice.OperationNotExistException();";
+ out << nl << "__opEx.id = __current.id;";
+ out << nl << "__opEx.facet = __current.facet;";
out << nl << "__opEx.operation = __current.operation;";
out << nl << "throw __opEx;";
out << eb;
- out << nl << "try";
- out << sb;
out << nl;
if(ret)
{
@@ -3178,34 +3178,11 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "return;";
}
out << eb;
- ExceptionList::const_iterator r;
- for(r = throws.begin(); r != throws.end(); ++r)
- {
- out << nl << "catch(" << getAbsolute((*r)->scoped(), scope) << " __ex)";
- out << sb;
- out << nl << "throw __ex;";
- out << eb;
- }
- //
- // No need to catch Ice.UserException because it's not possible in Java
- //
- out << nl << "catch(Ice.LocalException __ex)";
- out << sb;
- out << nl << "throw __ex;";
- out << eb;
- out << nl << "catch(java.lang.RuntimeException __ex)";
- out << sb;
- out << nl << "Ice.UnknownException __e = new Ice.UnknownException();";
- out << nl << "__e.initCause(__ex);";
- out << nl << "throw __e;";
- out << eb;
- out << eb;
out << nl << "finally";
out << sb;
out << nl << "__direct.destroy();";
out << eb;
out << eb;
-
out << eb;
}