summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2java/Gen.cpp17
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";