From 5d767c311be478d49bcc43ffab9ba5bedfcaadc2 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Sat, 4 Jan 2003 03:58:07 +0000 Subject: amd operations should declare exceptions --- cpp/src/slice2java/Gen.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'cpp/src/slice2java/Gen.cpp') diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index e30af60781e..13938c10b9a 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -902,13 +902,10 @@ Slice::Gen::OpsVisitor::visitOperation(const OperationPtr& p) out << "Ice.Current current"; } out << ')'; - if(!amd) - { - ExceptionList throws = p->throws(); - throws.sort(); - throws.unique(); - writeThrowsClause(scope, throws); - } + ExceptionList throws = p->throws(); + throws.sort(); + throws.unique(); + writeThrowsClause(scope, throws); out << ';'; } @@ -3480,6 +3477,12 @@ Slice::Gen::BaseImplVisitor::writeOperation(Output& out, const string& scope, co out << sp << nl << "public void" << nl << opName << "_async(" << getParamsAsync(op, scope, true) << ", Ice.Current current)"; + + ExceptionList throws = op->throws(); + throws.sort(); + throws.unique(); + writeThrowsClause(scope, throws); + out << sb; string result = "r"; -- cgit v1.2.3