summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-11-07 10:22:02 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-11-07 10:22:02 +0100
commite53ec3d80e06330dc07203384979964c56d41cee (patch)
tree6a838fc6fedf96e9d759e334da8cf8ad45fb5ff1 /cpp/src/slice2java/Gen.cpp
parentFixed bug in IceGrid application sync (diff)
downloadice-e53ec3d80e06330dc07203384979964c56d41cee.tar.bz2
ice-e53ec3d80e06330dc07203384979964c56d41cee.tar.xz
ice-e53ec3d80e06330dc07203384979964c56d41cee.zip
Fixed generated code to use skipEmptyEncaps instead of startReadEncaps/endReadEncaps
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index e8f7145afc3..6ced7eec620 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -4270,7 +4270,7 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "throw new Ice.UnknownUserException(__ex.ice_name());";
out << eb;
out << eb;
- if(op->returnsData())
+ if(ret || !outParams.empty())
{
out << nl << "IceInternal.BasicStream __is = __og.is();";
out << nl << "__is.startReadEncaps();";
@@ -5150,7 +5150,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
out << nl << "throw new Ice.UnknownUserException(__ex.ice_name());";
out << eb;
out << eb;
- if(p->returnsData())
+ if(ret || !outParams.empty())
{
out << nl << "__is.startReadEncaps();";
for(pli = outParams.begin(); pli != outParams.end(); ++pli)