diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-01-04 03:58:07 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-01-04 03:58:07 +0000 |
commit | 5d767c311be478d49bcc43ffab9ba5bedfcaadc2 (patch) | |
tree | f8e710783561197f316a3cde8f5b74e50669f6c1 /cpp/src/slice2java | |
parent | add AMD support to generated implementation examples (diff) | |
download | ice-5d767c311be478d49bcc43ffab9ba5bedfcaadc2.tar.bz2 ice-5d767c311be478d49bcc43ffab9ba5bedfcaadc2.tar.xz ice-5d767c311be478d49bcc43ffab9ba5bedfcaadc2.zip |
amd operations should declare exceptions
Diffstat (limited to 'cpp/src/slice2java')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
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"; |