From a47a05a2f73e377053f9b864b0f36c99a84708af Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 20 Mar 2017 21:51:43 +0100 Subject: Fix (ICE-7684) - use Disp prefix only for class with operations skeletons --- cpp/src/slice2java/Gen.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cpp/src/slice2java/Gen.cpp') 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(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; -- cgit v1.2.3