summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-05-07 16:19:20 +0000
committerMark Spruiell <mes@zeroc.com>2004-05-07 16:19:20 +0000
commit7b03ec4515e6441de72deaf8f404d03c9876ab4f (patch)
tree9a0e3b6df5e1c5b3e7bdb4519676b9c5e5a9c094 /cpp/src/slice2java/Gen.cpp
parentFirst step of Mono port. Everything compiles, but not all tests run. (diff)
downloadice-7b03ec4515e6441de72deaf8f404d03c9876ab4f.tar.bz2
ice-7b03ec4515e6441de72deaf8f404d03c9876ab4f.tar.xz
ice-7b03ec4515e6441de72deaf8f404d03c9876ab4f.zip
fixing AMI bug with routers
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index e1813da0ff2..ec2c56f05fc 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -2323,7 +2323,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p)
out << sb;
// Async requests may only be sent twoway.
out << nl << "__checkTwowayOnly(\"" << p->name() << "\");";
- out << nl << "__cb.__invoke" << spar << "__reference()" << argsAMI << "__ctx" << epar << ';';
+ out << nl << "__cb.__invoke" << spar << "this" << argsAMI << "__ctx" << epar << ';';
out << eb;
}
}
@@ -3730,12 +3730,12 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
out << nl << "public abstract void ice_exception(Ice.UserException ex);";
}
- out << sp << nl << "public final void" << nl << "__invoke" << spar << "IceInternal.Reference __ref"
+ out << sp << nl << "public final void" << nl << "__invoke" << spar << "Ice.ObjectPrx __prx"
<< paramsInvoke << "java.util.Map __ctx" << epar;
out << sb;
out << nl << "try";
out << sb;
- out << nl << "__prepare(__ref, \"" << p->name() << "\", " << sliceModeToIceMode(p) << ", __ctx);";
+ out << nl << "__prepare(__prx, \"" << p->name() << "\", " << sliceModeToIceMode(p) << ", __ctx);";
for(q = inParams.begin(); q != inParams.end(); ++q)
{
string typeS = typeToString(q->first, TypeModeIn, classPkg);