diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-01 16:05:37 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-01 16:05:37 -0800 |
commit | 4bd3e770da6d82205ee1746364b65e04c124e9a1 (patch) | |
tree | 369832f722718db50bc4fc5edbbc535674f3fb33 /cpp/src/slice2java/Gen.cpp | |
parent | Removed ICE_HOME from cs project that was missed before (diff) | |
download | ice-4bd3e770da6d82205ee1746364b65e04c124e9a1.tar.bz2 ice-4bd3e770da6d82205ee1746364b65e04c124e9a1.tar.xz ice-4bd3e770da6d82205ee1746364b65e04c124e9a1.zip |
Always generate new async mapping in Java. Also removed ["ami"] metadata
from Java test/demo Slice files where it is no longer necessary.
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index c5408af7582..4300a1f2f23 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -3778,7 +3778,6 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out << eb; out << eb; - if(cl->hasMetaData("ami") || op->hasMetaData("ami")) { // // Write the asynchronous begin/end methods. @@ -4009,7 +4008,10 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "__end(__result, __" << op->name() << "_name);"; } out << eb; + } + if(cl->hasMetaData("ami") || op->hasMetaData("ami")) + { vector<string> paramsAMI = getParamsAsync(op, package, false); vector<string> argsAMI = getInOutArgs(op, InParam); @@ -4590,7 +4592,6 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) writeThrowsClause(package, throws); out << ';'; - if(cl->hasMetaData("ami") || p->hasMetaData("ami")) { // // Write the asynchronous begin/end methods. @@ -4650,7 +4651,10 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) << epar; writeThrowsClause(package, throws); out << ';'; + } + if(cl->hasMetaData("ami") || p->hasMetaData("ami")) + { vector<string> paramsAMI = getParamsAsync(p, package, false); // @@ -5591,7 +5595,6 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) // // Generate new-style callback. // - if(cl->hasMetaData("ami") || p->hasMetaData("ami")) { string classNameAsync = "Callback_" + cl->name(); string absoluteAsync = getAbsolute(cl, "", "Callback_", "_" + name); |