diff options
author | Jose <jose@zeroc.com> | 2017-03-20 21:51:43 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-03-20 21:51:43 +0100 |
commit | a47a05a2f73e377053f9b864b0f36c99a84708af (patch) | |
tree | fe18a51afcd5dd0f8b847c2a5c8cedc630ed19e0 /cpp/src/slice2java/Gen.cpp | |
parent | Fixed gmake build system dependency issue (diff) | |
download | ice-a47a05a2f73e377053f9b864b0f36c99a84708af.tar.bz2 ice-a47a05a2f73e377053f9b864b0f36c99a84708af.tar.xz ice-a47a05a2f73e377053f9b864b0f36c99a84708af.zip |
Fix (ICE-7684) - use Disp prefix only for class with operations skeletons
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index c8d42d95418..4ab41ebefc0 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -167,7 +167,7 @@ Slice::JavaVisitor::getResultType(const OperationPtr& op, const string& package, } else { - abs = getAbsolute(c, package, "_", "Disp"); + abs = getAbsolute(c, package, "", "Disp"); } string name = op->name(); name[0] = toupper(static_cast<unsigned char>(name[0])); @@ -1211,7 +1211,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) } else { - out << '_' << p->name() << "Disp"; + out << p->name() << "Disp"; } out << " obj, final com.zeroc.IceInternal.Incoming inS, com.zeroc.Ice.Current current)"; if(!op->throws().empty() || op->hasMetaData("java:UserException") || op->hasMetaData("UserException")) @@ -1460,7 +1460,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) } else { - base = getAbsolute(cl, package, "_", "Disp"); + base = getAbsolute(cl, package, "", "Disp"); } out << nl << "return " << base << "._iceD_" << opName << "(this, in, current);"; } @@ -5302,7 +5302,7 @@ Slice::Gen::DispatcherVisitor::visitClassDefStart(const ClassDefPtr& p) } const string name = p->name(); - const string absolute = getAbsolute(p, "", "_", "Disp"); + const string absolute = getAbsolute(p, "", "", "Disp"); const string package = getPackage(p); open(absolute, p->file()); @@ -5316,7 +5316,7 @@ Slice::Gen::DispatcherVisitor::visitClassDefStart(const ClassDefPtr& p) { out << nl << "@Deprecated"; } - out << nl << "public interface _" << name << "Disp"; + out << nl << "public interface " << name << "Disp"; // // For dispatch purposes, we can ignore a base class if it has no operations. @@ -5343,7 +5343,7 @@ Slice::Gen::DispatcherVisitor::visitClassDefStart(const ClassDefPtr& p) } if(!(*q)->isInterface()) { - out << getAbsolute(*q, package, "_", "Disp"); + out << getAbsolute(*q, package, "", "Disp"); } else { @@ -5397,7 +5397,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) } else { - out << " implements _" << name << "Disp"; + out << " implements " << name << "Disp"; } } out << sb; |