summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-03-20 21:51:43 +0100
committerJose <jose@zeroc.com>2017-03-20 21:51:43 +0100
commita47a05a2f73e377053f9b864b0f36c99a84708af (patch)
treefe18a51afcd5dd0f8b847c2a5c8cedc630ed19e0
parentFixed gmake build system dependency issue (diff)
downloadice-a47a05a2f73e377053f9b864b0f36c99a84708af.tar.bz2
ice-a47a05a2f73e377053f9b864b0f36c99a84708af.tar.xz
ice-a47a05a2f73e377053f9b864b0f36c99a84708af.zip
Fix (ICE-7684) - use Disp prefix only for class with operations skeletons
-rw-r--r--cpp/src/Slice/PythonUtil.cpp6
-rw-r--r--cpp/src/slice2java/Gen.cpp14
-rw-r--r--cpp/src/slice2js/Gen.cpp9
-rw-r--r--java/test/src/main/java/test/Ice/inheritance/CAI.java4
-rw-r--r--java/test/src/main/java/test/Ice/inheritance/CBI.java4
-rw-r--r--java/test/src/main/java/test/Ice/inheritance/CCI.java4
-rw-r--r--java/test/src/main/java/test/Ice/inheritance/CDI.java4
-rw-r--r--java/test/src/main/java/test/Ice/objects/Collocated.java4
-rw-r--r--java/test/src/main/java/test/Ice/objects/InitialI.java2
-rw-r--r--java/test/src/main/java/test/Ice/objects/Test.ice2
-rw-r--r--js/test/Common/ControllerI.js4
-rw-r--r--js/test/Glacier2/router/Client.js2
-rw-r--r--js/test/Ice/exceptions/AMDThrowerI.js2
-rw-r--r--js/test/Ice/exceptions/Client.js2
-rw-r--r--js/test/Ice/exceptions/ThrowerI.js2
-rw-r--r--js/test/Ice/facets/TestI.js8
-rw-r--r--js/test/Ice/inheritance/InitialI.js18
-rw-r--r--js/test/Ice/objects/Client.js4
-rw-r--r--js/test/Ice/operations/AMDMyDerivedClassI.js2
-rw-r--r--js/test/Ice/operations/MyDerivedClassI.js2
-rw-r--r--js/test/Ice/operations/Twoways.js4
-rw-r--r--js/test/Ice/optional/AMDInitialI.js2
-rw-r--r--js/test/Ice/optional/InitialI.js2
-rw-r--r--python/test/Glacier2/application/Client.py2
-rw-r--r--python/test/Glacier2/application/Server.py2
-rw-r--r--python/test/Ice/acm/TestI.py6
-rw-r--r--python/test/Ice/adapterDeactivation/TestI.py2
-rw-r--r--python/test/Ice/admin/TestI.py6
-rw-r--r--python/test/Ice/ami/AllTests.py24
-rw-r--r--python/test/Ice/ami/TestI.py4
-rw-r--r--python/test/Ice/binding/TestI.py6
-rw-r--r--python/test/Ice/blobject/RouterI.py2
-rwxr-xr-xpython/test/Ice/blobject/Server.py2
-rwxr-xr-xpython/test/Ice/checksum/Server.py2
-rwxr-xr-xpython/test/Ice/custom/Server.py2
-rw-r--r--python/test/Ice/defaultServant/MyObjectI.py2
-rw-r--r--python/test/Ice/dispatcher/TestI.py4
-rwxr-xr-xpython/test/Ice/enums/Server.py2
-rw-r--r--python/test/Ice/exceptions/AllTests.py2
-rwxr-xr-xpython/test/Ice/exceptions/ServerAMD.py2
-rw-r--r--python/test/Ice/exceptions/TestI.py2
-rw-r--r--python/test/Ice/facets/AllTests.py2
-rw-r--r--python/test/Ice/facets/TestI.py16
-rwxr-xr-xpython/test/Ice/faultTolerance/Server.py2
-rw-r--r--python/test/Ice/info/TestI.py2
-rw-r--r--python/test/Ice/inheritance/TestI.py18
-rw-r--r--python/test/Ice/location/AllTests.py2
-rwxr-xr-xpython/test/Ice/location/Server.py10
-rw-r--r--python/test/Ice/objects/Test.ice2
-rw-r--r--python/test/Ice/objects/TestI.py4
-rw-r--r--python/test/Ice/operations/OnewaysAMI.py2
-rw-r--r--python/test/Ice/operations/OnewaysFuture.py2
-rwxr-xr-xpython/test/Ice/operations/ServerAMD.py10
-rw-r--r--python/test/Ice/operations/TestI.py10
-rw-r--r--python/test/Ice/operations/Twoways.py8
-rw-r--r--python/test/Ice/operations/TwowaysAMI.py2
-rw-r--r--python/test/Ice/operations/TwowaysFuture.py2
-rwxr-xr-xpython/test/Ice/optional/Server.py2
-rwxr-xr-xpython/test/Ice/optional/ServerAMD.py2
-rwxr-xr-xpython/test/Ice/proxy/ServerAMD.py4
-rw-r--r--python/test/Ice/proxy/TestI.py4
-rw-r--r--python/test/Ice/servantLocator/TestAMDI.py2
-rw-r--r--python/test/Ice/servantLocator/TestActivationAMDI.py2
-rw-r--r--python/test/Ice/servantLocator/TestActivationI.py2
-rw-r--r--python/test/Ice/servantLocator/TestI.py2
-rw-r--r--python/test/Ice/slicing/exceptions/AllTests.py2
-rwxr-xr-xpython/test/Ice/slicing/exceptions/Server.py2
-rwxr-xr-xpython/test/Ice/slicing/exceptions/ServerAMD.py2
-rwxr-xr-xpython/test/Ice/slicing/objects/Server.py2
-rwxr-xr-xpython/test/Ice/slicing/objects/ServerAMD.py2
-rw-r--r--python/test/Ice/thread/TestI.py6
-rwxr-xr-xpython/test/Ice/timeout/Server.py2
-rwxr-xr-xpython/test/Slice/escape/Client.py6
-rwxr-xr-xscripts/Controller.py2
-rw-r--r--scripts/Util.py11
75 files changed, 165 insertions, 167 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 05c928c0e7d..ae3c04aa9b9 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -521,8 +521,8 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
string type = getAbsolute(p, "_t_");
string classType = getAbsolute(p, "_t_", "Disp");
string abs = getAbsolute(p);
- string className = isLocal ? fixIdent(p->name()) : isAbstract ? fixIdent("_" + p->name() + "Disp") : "None";
- string classAbs = getAbsolute(p, "_", "Disp");
+ string className = isLocal || isInterface ? fixIdent(p->name()) : isAbstract ? fixIdent(p->name() + "Disp") : "None";
+ string classAbs = isInterface ? getAbsolute(p) : getAbsolute(p, "", "Disp");
string valueName = (isInterface && !isLocal) ? "Ice.Value" : fixIdent(p->name());
string prxAbs = getAbsolute(p, "", "Prx");
string prxName = fixIdent(p->name() + "Prx");
@@ -902,7 +902,7 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
ClassDefPtr d = *q;
if(d->isInterface() || d->allOperations().size() > 0)
{
- baseClasses.push_back(getSymbol(*q, "_", "Disp"));
+ baseClasses.push_back(getSymbol(*q, "", d->isInterface() ? "" : "Disp"));
}
}
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;
diff --git a/cpp/src/slice2js/Gen.cpp b/cpp/src/slice2js/Gen.cpp
index 611f505c440..86720f41111 100644
--- a/cpp/src/slice2js/Gen.cpp
+++ b/cpp/src/slice2js/Gen.cpp
@@ -1081,10 +1081,10 @@ Slice::Gen::TypesVisitor::visitClassDefStart(const ClassDefPtr& p)
{
_out << sp;
writeDocComment(p, getDeprecateReason(p, 0, "type"));
- _out << nl << localScope << "._" << p->name() << "Disp" << " = class extends ";
+ _out << nl << localScope << "." << (p->isInterface() ? p->name() : p->name() + "Disp") << " = class extends ";
if(hasBaseClass)
{
- _out << getLocalScope(base->scope()) << "._" << base->name() << "Disp";
+ _out << getLocalScope(base->scope()) << "." << base->name() << "Disp";
}
else
{
@@ -1104,7 +1104,8 @@ Slice::Gen::TypesVisitor::visitClassDefStart(const ClassDefPtr& p)
ClassDefPtr base = *q;
if(base->isInterface())
{
- _out << nl << getLocalScope(base->scope()) << "._" << base->name()<< "Disp" ;
+ _out << nl << getLocalScope(base->scope()) << "." <<
+ (base->isInterface() ? base->name() : base->name() + "Disp");
if(++q != bases.end())
{
_out << ", ";
@@ -1172,7 +1173,7 @@ Slice::Gen::TypesVisitor::visitClassDefStart(const ClassDefPtr& p)
}
_out << sp << nl << "Slice.defineOperations("
- << localScope << "._" << p->name() << "Disp, "
+ << localScope << "." << (p->isInterface() ? p->name() : p->name() + "Disp") << ", "
<< proxyType << ", "
<< "iceC_" << getLocalScope(scoped, "_") << "_ids, "
<< scopedPos;
diff --git a/java/test/src/main/java/test/Ice/inheritance/CAI.java b/java/test/src/main/java/test/Ice/inheritance/CAI.java
index feaa79c9a15..fdc6451502c 100644
--- a/java/test/src/main/java/test/Ice/inheritance/CAI.java
+++ b/java/test/src/main/java/test/Ice/inheritance/CAI.java
@@ -9,10 +9,10 @@
package test.Ice.inheritance;
-import test.Ice.inheritance.Test.MA._CADisp;
+import test.Ice.inheritance.Test.MA.CADisp;
import test.Ice.inheritance.Test.MA.CAPrx;
-public final class CAI implements _CADisp
+public final class CAI implements CADisp
{
public CAI()
{
diff --git a/java/test/src/main/java/test/Ice/inheritance/CBI.java b/java/test/src/main/java/test/Ice/inheritance/CBI.java
index b625dfbb393..b3e29e7a908 100644
--- a/java/test/src/main/java/test/Ice/inheritance/CBI.java
+++ b/java/test/src/main/java/test/Ice/inheritance/CBI.java
@@ -10,10 +10,10 @@
package test.Ice.inheritance;
import test.Ice.inheritance.Test.MA.CAPrx;
-import test.Ice.inheritance.Test.MB._CBDisp;
+import test.Ice.inheritance.Test.MB.CBDisp;
import test.Ice.inheritance.Test.MB.CBPrx;
-public final class CBI implements _CBDisp
+public final class CBI implements CBDisp
{
public CBI()
{
diff --git a/java/test/src/main/java/test/Ice/inheritance/CCI.java b/java/test/src/main/java/test/Ice/inheritance/CCI.java
index a2b5122a8a1..81da1b9e00d 100644
--- a/java/test/src/main/java/test/Ice/inheritance/CCI.java
+++ b/java/test/src/main/java/test/Ice/inheritance/CCI.java
@@ -10,11 +10,11 @@
package test.Ice.inheritance;
import test.Ice.inheritance.Test.MA.CAPrx;
-import test.Ice.inheritance.Test.MA._CCDisp;
+import test.Ice.inheritance.Test.MA.CCDisp;
import test.Ice.inheritance.Test.MA.CCPrx;
import test.Ice.inheritance.Test.MB.CBPrx;
-public final class CCI implements _CCDisp
+public final class CCI implements CCDisp
{
public CCI()
{
diff --git a/java/test/src/main/java/test/Ice/inheritance/CDI.java b/java/test/src/main/java/test/Ice/inheritance/CDI.java
index d19f72d3fa1..0975fa5fe3c 100644
--- a/java/test/src/main/java/test/Ice/inheritance/CDI.java
+++ b/java/test/src/main/java/test/Ice/inheritance/CDI.java
@@ -11,14 +11,14 @@ package test.Ice.inheritance;
import test.Ice.inheritance.Test.MA.CAPrx;
import test.Ice.inheritance.Test.MA.CCPrx;
-import test.Ice.inheritance.Test.MA._CDDisp;
+import test.Ice.inheritance.Test.MA.CDDisp;
import test.Ice.inheritance.Test.MA.CDPrx;
import test.Ice.inheritance.Test.MA.IAPrx;
import test.Ice.inheritance.Test.MB.CBPrx;
import test.Ice.inheritance.Test.MB.IB1Prx;
import test.Ice.inheritance.Test.MB.IB2Prx;
-public final class CDI implements _CDDisp
+public final class CDI implements CDDisp
{
public CDI()
{
diff --git a/java/test/src/main/java/test/Ice/objects/Collocated.java b/java/test/src/main/java/test/Ice/objects/Collocated.java
index 96a03a9155b..44ca644bf4d 100644
--- a/java/test/src/main/java/test/Ice/objects/Collocated.java
+++ b/java/test/src/main/java/test/Ice/objects/Collocated.java
@@ -9,7 +9,7 @@
package test.Ice.objects;
-import test.Ice.objects.Test._InitialDisp;
+import test.Ice.objects.Test.Initial;
public class Collocated extends test.Util.Application
{
@@ -91,7 +91,7 @@ public class Collocated extends test.Util.Application
communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
com.zeroc.Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
- _InitialDisp initial = new InitialI(adapter);
+ Initial initial = new InitialI(adapter);
adapter.add(initial, com.zeroc.Ice.Util.stringToIdentity("initial"));
UnexpectedObjectExceptionTestI object = new UnexpectedObjectExceptionTestI();
adapter.add(object, com.zeroc.Ice.Util.stringToIdentity("uoet"));
diff --git a/java/test/src/main/java/test/Ice/objects/InitialI.java b/java/test/src/main/java/test/Ice/objects/InitialI.java
index 531b10e0787..8b0876bc4c6 100644
--- a/java/test/src/main/java/test/Ice/objects/InitialI.java
+++ b/java/test/src/main/java/test/Ice/objects/InitialI.java
@@ -14,7 +14,7 @@ import test.Ice.objects.Test.*;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.CompletableFuture;
-public final class InitialI implements _InitialDisp
+public final class InitialI implements Initial
{
public InitialI(com.zeroc.Ice.ObjectAdapter adapter)
{
diff --git a/java/test/src/main/java/test/Ice/objects/Test.ice b/java/test/src/main/java/test/Ice/objects/Test.ice
index 629cc8c10b8..c9b3b592b26 100644
--- a/java/test/src/main/java/test/Ice/objects/Test.ice
+++ b/java/test/src/main/java/test/Ice/objects/Test.ice
@@ -163,7 +163,7 @@ exception EDerived extends EBase
A1 a4;
};
-class Initial
+interface Initial
{
void shutdown();
B getB1();
diff --git a/js/test/Common/ControllerI.js b/js/test/Common/ControllerI.js
index d758fe65383..f83b3fc7083 100644
--- a/js/test/Common/ControllerI.js
+++ b/js/test/Common/ControllerI.js
@@ -33,7 +33,7 @@ function isWindows()
return navigator.userAgent.indexOf("Windows") != -1;
}
-class ProcessI extends Test.Common._ProcessDisp
+class ProcessI extends Test.Common.Process
{
constructor(promise, output)
{
@@ -64,7 +64,7 @@ class ProcessI extends Test.Common._ProcessDisp
}
};
-class ProcessControllerI extends Test.Common._ProcessControllerDisp
+class ProcessControllerI extends Test.Common.ProcessController
{
constructor(output, logger, useWorker, scripts)
{
diff --git a/js/test/Glacier2/router/Client.js b/js/test/Glacier2/router/Client.js
index e7eb3871225..79ceee576dc 100644
--- a/js/test/Glacier2/router/Client.js
+++ b/js/test/Glacier2/router/Client.js
@@ -24,7 +24,7 @@
var CallbackPrx = Test.CallbackPrx;
var CallbackReceiverPrx = Test.CallbackReceiverPrx;
- class CallbackReceiverI extends Test._CallbackReceiverDisp
+ class CallbackReceiverI extends Test.CallbackReceiver
{
constructor()
{
diff --git a/js/test/Ice/exceptions/AMDThrowerI.js b/js/test/Ice/exceptions/AMDThrowerI.js
index fa3af915e91..a19e0904d07 100644
--- a/js/test/Ice/exceptions/AMDThrowerI.js
+++ b/js/test/Ice/exceptions/AMDThrowerI.js
@@ -21,7 +21,7 @@
}
};
- class AMDThrowerI extends Test._ThrowerDisp
+ class AMDThrowerI extends Test.Thrower
{
shutdown(current)
{
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js
index a2d8b75bd7c..a4841d61a0d 100644
--- a/js/test/Ice/exceptions/Client.js
+++ b/js/test/Ice/exceptions/Client.js
@@ -14,7 +14,7 @@
var allTests = function(out, communicator, Test, bidir)
{
- class EmptyI extends Test._EmptyDisp
+ class EmptyI extends Test.Empty
{
}
diff --git a/js/test/Ice/exceptions/ThrowerI.js b/js/test/Ice/exceptions/ThrowerI.js
index 94b78be0743..7686ecb8a92 100644
--- a/js/test/Ice/exceptions/ThrowerI.js
+++ b/js/test/Ice/exceptions/ThrowerI.js
@@ -22,7 +22,7 @@
}
};
- class ThrowerI extends Test._ThrowerDisp
+ class ThrowerI extends Test.Thrower
{
shutdown(current)
{
diff --git a/js/test/Ice/facets/TestI.js b/js/test/Ice/facets/TestI.js
index 40368942d42..5a633ded44d 100644
--- a/js/test/Ice/facets/TestI.js
+++ b/js/test/Ice/facets/TestI.js
@@ -12,7 +12,7 @@
var Ice = require("ice").Ice;
var Test = require("Test").Test;
- exports.DI = class extends Test._DDisp
+ exports.DI = class extends Test.D
{
callA(current)
{
@@ -35,11 +35,11 @@
}
};
- exports.EmptyI = class extends Test._EmptyDisp
+ exports.EmptyI = class extends Test.Empty
{
};
- exports.FI = class extends Test._FDisp
+ exports.FI = class extends Test.F
{
callE(current)
{
@@ -52,7 +52,7 @@
}
};
- exports.HI = class extends Test._HDisp
+ exports.HI = class extends Test.H
{
callG(current)
{
diff --git a/js/test/Ice/inheritance/InitialI.js b/js/test/Ice/inheritance/InitialI.js
index 969e37cd509..030babe3b2b 100644
--- a/js/test/Ice/inheritance/InitialI.js
+++ b/js/test/Ice/inheritance/InitialI.js
@@ -12,7 +12,7 @@
var Ice = require("ice").Ice;
var Test = require("Test").Test;
- class CAI extends Test.MA._CADisp
+ class CAI extends Test.MA.CADisp
{
caop(p, current)
{
@@ -20,7 +20,7 @@
}
}
- class CBI extends Test.MB._CBDisp
+ class CBI extends Test.MB.CBDisp
{
caop(p, current)
{
@@ -33,7 +33,7 @@
}
}
- class CCI extends Test.MA._CCDisp
+ class CCI extends Test.MA.CCDisp
{
caop(p, current)
{
@@ -51,7 +51,7 @@
}
}
- class CDI extends Test.MA._CDDisp
+ class CDI extends Test.MA.CDDisp
{
caop(p, current)
{
@@ -89,7 +89,7 @@
}
}
- class IAI extends Test.MA._IADisp
+ class IAI extends Test.MA.IA
{
iaop(p, current)
{
@@ -97,7 +97,7 @@
}
}
- class IB1I extends Test.MB._IB1Disp
+ class IB1I extends Test.MB.IB1
{
iaop(p, current)
{
@@ -110,7 +110,7 @@
}
}
- class IB2I extends Test.MB._IB2Disp
+ class IB2I extends Test.MB.IB2
{
iaop(p, current)
{
@@ -123,7 +123,7 @@
}
}
- class ICI extends Test.MA._ICDisp
+ class ICI extends Test.MA.IC
{
iaop(p, current)
{
@@ -146,7 +146,7 @@
}
}
- class InitialI extends Test._InitialDisp
+ class InitialI extends Test.Initial
{
constructor(adapter, obj)
{
diff --git a/js/test/Ice/objects/Client.js b/js/test/Ice/objects/Client.js
index 9b3a2b260f4..91413c1d1d7 100644
--- a/js/test/Ice/objects/Client.js
+++ b/js/test/Ice/objects/Client.js
@@ -85,7 +85,7 @@
{
constructor()
{
- super(Test._IDisp.ice_staticId());
+ super(Test.I.ice_staticId());
}
}
@@ -93,7 +93,7 @@
{
constructor()
{
- super(Test._JDisp.ice_staticId());
+ super(Test.J.ice_staticId());
}
}
diff --git a/js/test/Ice/operations/AMDMyDerivedClassI.js b/js/test/Ice/operations/AMDMyDerivedClassI.js
index 04f08afbad9..54f969cfc61 100644
--- a/js/test/Ice/operations/AMDMyDerivedClassI.js
+++ b/js/test/Ice/operations/AMDMyDerivedClassI.js
@@ -20,7 +20,7 @@
}
};
- class AMDMyDerivedClassI extends Test._MyDerivedClassDisp
+ class AMDMyDerivedClassI extends Test.MyDerivedClass
{
//
// Override the Object "pseudo" operations to verify the operation mode.
diff --git a/js/test/Ice/operations/MyDerivedClassI.js b/js/test/Ice/operations/MyDerivedClassI.js
index 6b8e2261bf5..dcb945ef8cb 100644
--- a/js/test/Ice/operations/MyDerivedClassI.js
+++ b/js/test/Ice/operations/MyDerivedClassI.js
@@ -20,7 +20,7 @@
}
};
- class MyDerivedClassI extends Test._MyDerivedClassDisp
+ class MyDerivedClassI extends Test.MyDerivedClass
{
//
// Override the Object "pseudo" operations to verify the operation mode.
diff --git a/js/test/Ice/operations/Twoways.js b/js/test/Ice/operations/Twoways.js
index 641a5d906dc..2b7b91aeacd 100644
--- a/js/test/Ice/operations/Twoways.js
+++ b/js/test/Ice/operations/Twoways.js
@@ -124,7 +124,7 @@
return prx.ice_ping();
}
- ).then(() => prx.ice_isA(Test._MyClassDisp.ice_staticId())
+ ).then(() => prx.ice_isA(Test.MyClass.ice_staticId())
).then(b =>
{
test(b);
@@ -132,7 +132,7 @@
}
).then(id =>
{
- test(id === Test._MyDerivedClassDisp.ice_staticId());
+ test(id === Test.MyDerivedClass.ice_staticId());
return prx.ice_ids();
}
).then(ids =>
diff --git a/js/test/Ice/optional/AMDInitialI.js b/js/test/Ice/optional/AMDInitialI.js
index 8e5beb84371..9a5706f10ca 100644
--- a/js/test/Ice/optional/AMDInitialI.js
+++ b/js/test/Ice/optional/AMDInitialI.js
@@ -20,7 +20,7 @@
}
};
- class AMDInitialI extends Test._InitialDisp
+ class AMDInitialI extends Test.Initial
{
shutdown(current)
{
diff --git a/js/test/Ice/optional/InitialI.js b/js/test/Ice/optional/InitialI.js
index 6fed69100fc..ec7e7f6b99e 100644
--- a/js/test/Ice/optional/InitialI.js
+++ b/js/test/Ice/optional/InitialI.js
@@ -20,7 +20,7 @@
}
};
- class InitialI extends Test._InitialDisp
+ class InitialI extends Test.Initial
{
shutdown(current)
{
diff --git a/python/test/Glacier2/application/Client.py b/python/test/Glacier2/application/Client.py
index f326207ffc1..70547571041 100644
--- a/python/test/Glacier2/application/Client.py
+++ b/python/test/Glacier2/application/Client.py
@@ -18,7 +18,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class CallbackReceiverI(Test._CallbackReceiverDisp):
+class CallbackReceiverI(Test.CallbackReceiver):
def __init__(self):
self._received = False
diff --git a/python/test/Glacier2/application/Server.py b/python/test/Glacier2/application/Server.py
index b0a5ef02e0d..90719545d5b 100644
--- a/python/test/Glacier2/application/Server.py
+++ b/python/test/Glacier2/application/Server.py
@@ -12,7 +12,7 @@ import os, sys, traceback, Ice
Ice.loadSlice('Callback.ice')
import Test
-class CallbackI(Test._CallbackDisp):
+class CallbackI(Test.Callback):
def initiateCallback(self, proxy, current):
proxy.callback(current.ctx)
diff --git a/python/test/Ice/acm/TestI.py b/python/test/Ice/acm/TestI.py
index 53158e42a28..ab81a0ae8c8 100644
--- a/python/test/Ice/acm/TestI.py
+++ b/python/test/Ice/acm/TestI.py
@@ -24,7 +24,7 @@ class ConnectionCallbackI():
while self.count < count:
self.m.wait()
-class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
+class RemoteCommunicatorI(Test.RemoteCommunicator):
def createObjectAdapter(self, timeout, close, heartbeat, current=None):
com = current.adapter.getCommunicator()
properties = com.getProperties()
@@ -44,7 +44,7 @@ class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
-class RemoteObjectAdapterI(Test._RemoteObjectAdapterDisp):
+class RemoteObjectAdapterI(Test.RemoteObjectAdapter):
def __init__(self, adapter):
self._adapter = adapter
self._testIntf = Test.TestIntfPrx.uncheckedCast(adapter.add(TestIntfI(),
@@ -66,7 +66,7 @@ class RemoteObjectAdapterI(Test._RemoteObjectAdapterDisp):
except Ice.ObjectAdapterDeactivatedException:
pass
-class TestIntfI(Test._TestIntfDisp):
+class TestIntfI(Test.TestIntf):
def __init__(self):
self.m = threading.Condition()
diff --git a/python/test/Ice/adapterDeactivation/TestI.py b/python/test/Ice/adapterDeactivation/TestI.py
index aeb4f60e98b..03e44ce4911 100644
--- a/python/test/Ice/adapterDeactivation/TestI.py
+++ b/python/test/Ice/adapterDeactivation/TestI.py
@@ -14,7 +14,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def transient(self, current=None):
communicator = current.adapter.getCommunicator()
adapter = communicator.createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9999")
diff --git a/python/test/Ice/admin/TestI.py b/python/test/Ice/admin/TestI.py
index 9172a2da65d..80d849b749b 100644
--- a/python/test/Ice/admin/TestI.py
+++ b/python/test/Ice/admin/TestI.py
@@ -13,11 +13,11 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestFacetI(Test._TestFacetDisp):
+class TestFacetI(Test.TestFacet):
def op(self, current = None):
return
-class RemoteCommunicatorI(Test._RemoteCommunicatorDisp, Ice.PropertiesAdminUpdateCallback):
+class RemoteCommunicatorI(Test.RemoteCommunicator, Ice.PropertiesAdminUpdateCallback):
def __init__(self, communicator):
self.communicator = communicator
self.called = False
@@ -61,7 +61,7 @@ class RemoteCommunicatorI(Test._RemoteCommunicatorDisp, Ice.PropertiesAdminUpdat
self.called = True
self.m.notify()
-class RemoteCommunicatorFactoryI(Test._RemoteCommunicatorFactoryDisp):
+class RemoteCommunicatorFactoryI(Test.RemoteCommunicatorFactory):
def createCommunicator(self, props, current = None):
#
diff --git a/python/test/Ice/ami/AllTests.py b/python/test/Ice/ami/AllTests.py
index b7dd106aadb..36d20450bf7 100644
--- a/python/test/Ice/ami/AllTests.py
+++ b/python/test/Ice/ami/AllTests.py
@@ -446,13 +446,13 @@ def allTests(communicator, collocated):
cookie = 5
cbWC = ResponseCallbackWC(cookie)
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), cb.isA, cb.ex)
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), cb.isA, cb.ex)
cb.check()
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), lambda r: cbWC.isA(r, cookie), lambda ex: cbWC.ex(ex, cookie))
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), lambda r: cbWC.isA(r, cookie), lambda ex: cbWC.ex(ex, cookie))
cbWC.check()
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), cb.isA, cb.ex, context=ctx)
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), cb.isA, cb.ex, context=ctx)
cb.check()
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), lambda r: cbWC.isA(r, cookie), lambda ex: cbWC.ex(ex, cookie),
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), lambda r: cbWC.isA(r, cookie), lambda ex: cbWC.ex(ex, cookie),
context=ctx)
cbWC.check()
@@ -563,9 +563,9 @@ def allTests(communicator, collocated):
cookie = 5
cbWC = ExceptionCallbackWC(cookie)
- i.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), cb.response, cb.ex)
+ i.begin_ice_isA(Test.TestIntf.ice_staticId(), cb.response, cb.ex)
cb.check()
- i.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), lambda b: cbWC.response(b, cookie), lambda ex: cbWC.ex(ex, cookie))
+ i.begin_ice_isA(Test.TestIntf.ice_staticId(), lambda b: cbWC.response(b, cookie), lambda ex: cbWC.ex(ex, cookie))
cbWC.check()
i.begin_ice_ping(cb.response, cb.ex)
@@ -604,8 +604,8 @@ def allTests(communicator, collocated):
cbWC = ExceptionCallbackWC(cookie)
# Ensures no exception is called when response is received.
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), cb.nullResponse, cb.noEx)
- p.begin_ice_isA(Test._TestIntfDisp.ice_staticId(), lambda b: cbWC.nullResponse(b, cookie),
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), cb.nullResponse, cb.noEx)
+ p.begin_ice_isA(Test.TestIntf.ice_staticId(), lambda b: cbWC.nullResponse(b, cookie),
lambda ex: cbWC.noEx(ex, cookie))
p.begin_op(cb.nullResponse, cb.noEx)
p.begin_op(lambda: cbWC.nullResponse(cookie), lambda ex: cbWC.noEx(ex, cookie))
@@ -1308,9 +1308,9 @@ def allTestsFuture(communicator, collocated):
ctx = {}
cb = FutureDoneCallback()
- p.ice_isAAsync(Test._TestIntfDisp.ice_staticId()).add_done_callback(cb.isA)
+ p.ice_isAAsync(Test.TestIntf.ice_staticId()).add_done_callback(cb.isA)
cb.check()
- p.ice_isAAsync(Test._TestIntfDisp.ice_staticId(), ctx).add_done_callback(cb.isA)
+ p.ice_isAAsync(Test.TestIntf.ice_staticId(), ctx).add_done_callback(cb.isA)
cb.check()
p.ice_pingAsync().add_done_callback(cb.ping)
@@ -1391,7 +1391,7 @@ def allTestsFuture(communicator, collocated):
i = Test.TestIntfPrx.uncheckedCast(p.ice_adapterId("dummy"))
cb = FutureExceptionCallback()
- i.ice_isAAsync(Test._TestIntfDisp.ice_staticId()).add_done_callback(cb.ex)
+ i.ice_isAAsync(Test.TestIntf.ice_staticId()).add_done_callback(cb.ex)
cb.check()
i.ice_pingAsync().add_done_callback(cb.ex)
@@ -1418,7 +1418,7 @@ def allTestsFuture(communicator, collocated):
cb = FutureExceptionCallback()
# Ensures no exception is set when response is received.
- p.ice_isAAsync(Test._TestIntfDisp.ice_staticId()).add_done_callback(cb.noEx)
+ p.ice_isAAsync(Test.TestIntf.ice_staticId()).add_done_callback(cb.noEx)
p.opAsync().add_done_callback(cb.noEx)
# If response is a user exception, it should be received.
diff --git a/python/test/Ice/ami/TestI.py b/python/test/Ice/ami/TestI.py
index d969b10fd72..04ae463b4e4 100644
--- a/python/test/Ice/ami/TestI.py
+++ b/python/test/Ice/ami/TestI.py
@@ -9,7 +9,7 @@
import Ice, Test, threading, time
-class TestIntfI(Test._TestIntfDisp):
+class TestIntfI(Test.TestIntf):
def __init__(self):
self._cond = threading.Condition()
self._batchCount = 0
@@ -77,7 +77,7 @@ class TestIntfI(Test._TestIntfDisp):
def supportsFunctionalTests(self, current=None):
return False
-class TestIntfControllerI(Test._TestIntfControllerDisp):
+class TestIntfControllerI(Test.TestIntfController):
def __init__(self, adapter):
self._adapter = adapter
diff --git a/python/test/Ice/binding/TestI.py b/python/test/Ice/binding/TestI.py
index 1cf751840bc..35bd86dc46c 100644
--- a/python/test/Ice/binding/TestI.py
+++ b/python/test/Ice/binding/TestI.py
@@ -9,7 +9,7 @@
import Ice, Test
-class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
+class RemoteCommunicatorI(Test.RemoteCommunicator):
def __init__(self):
self._nextPort = 10001
@@ -32,7 +32,7 @@ class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
-class RemoteObjectAdapterI(Test._RemoteObjectAdapterDisp):
+class RemoteObjectAdapterI(Test.RemoteObjectAdapter):
def __init__(self, adapter):
self._adapter = adapter
self._testIntf = Test.TestIntfPrx.uncheckedCast(self._adapter.add(TestI(), Ice.stringToIdentity("test")))
@@ -47,6 +47,6 @@ class RemoteObjectAdapterI(Test._RemoteObjectAdapterDisp):
except Ice.ObjectAdapterDeactivatedException:
pass
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def getAdapterName(self, current=None):
return current.adapter.getName()
diff --git a/python/test/Ice/blobject/RouterI.py b/python/test/Ice/blobject/RouterI.py
index 7148fb350fc..2af75a0f06f 100644
--- a/python/test/Ice/blobject/RouterI.py
+++ b/python/test/Ice/blobject/RouterI.py
@@ -131,7 +131,7 @@ class ServantLocatorI(Ice.ServantLocator):
def deactivate(self, s):
pass
-class RouterI(Ice._RouterDisp):
+class RouterI(Ice.Router):
def __init__(self, communicator, sync):
self._adapter = communicator.createObjectAdapterWithEndpoints("forward", "default -h 127.0.0.1")
if sync:
diff --git a/python/test/Ice/blobject/Server.py b/python/test/Ice/blobject/Server.py
index 9cd56f0de08..ce5c7dae040 100755
--- a/python/test/Ice/blobject/Server.py
+++ b/python/test/Ice/blobject/Server.py
@@ -15,7 +15,7 @@ import Ice
Ice.loadSlice('Test.ice')
import Test
-class TestI(Test._HelloDisp):
+class TestI(Test.Hello):
def sayHello(self, delay, current=None):
if delay != 0:
time.sleep(delay / 1000.0)
diff --git a/python/test/Ice/checksum/Server.py b/python/test/Ice/checksum/Server.py
index 54028534eb7..e88501da62a 100755
--- a/python/test/Ice/checksum/Server.py
+++ b/python/test/Ice/checksum/Server.py
@@ -19,7 +19,7 @@ if not slice_dir:
Ice.loadSlice("'-I" + slice_dir + "' --checksum Test.ice STypes.ice")
import Test
-class ChecksumI(Test._ChecksumDisp):
+class ChecksumI(Test.Checksum):
def getSliceChecksums(self, current=None):
return Ice.sliceChecksums
diff --git a/python/test/Ice/custom/Server.py b/python/test/Ice/custom/Server.py
index ad132e98526..00e21a9e5c6 100755
--- a/python/test/Ice/custom/Server.py
+++ b/python/test/Ice/custom/Server.py
@@ -18,7 +18,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class CustomI(Test._CustomDisp):
+class CustomI(Test.Custom):
def opByteString1(self, b1, current=None):
if sys.version_info[0] == 2:
test(isinstance(b1, str))
diff --git a/python/test/Ice/defaultServant/MyObjectI.py b/python/test/Ice/defaultServant/MyObjectI.py
index 13eaf576f83..5ff29e8bc28 100644
--- a/python/test/Ice/defaultServant/MyObjectI.py
+++ b/python/test/Ice/defaultServant/MyObjectI.py
@@ -9,7 +9,7 @@
import Ice, Test
-class MyObjectI(Test._MyObjectDisp):
+class MyObjectI(Test.MyObject):
def ice_ping(self, current=None):
name = current.id.name
diff --git a/python/test/Ice/dispatcher/TestI.py b/python/test/Ice/dispatcher/TestI.py
index 2dfa9cc3f52..d3202b29406 100644
--- a/python/test/Ice/dispatcher/TestI.py
+++ b/python/test/Ice/dispatcher/TestI.py
@@ -13,7 +13,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestIntfI(Test._TestIntfDisp):
+class TestIntfI(Test.TestIntf):
def op(self, current=None):
test(Dispatcher.Dispatcher.isDispatcherThread())
@@ -27,7 +27,7 @@ class TestIntfI(Test._TestIntfDisp):
test(Dispatcher.Dispatcher.isDispatcherThread())
current.adapter.getCommunicator().shutdown()
-class TestIntfControllerI(Test._TestIntfControllerDisp):
+class TestIntfControllerI(Test.TestIntfController):
def __init__(self, adapter):
self._adapter = adapter
diff --git a/python/test/Ice/enums/Server.py b/python/test/Ice/enums/Server.py
index 93f27f861c0..4213cf2ce2c 100755
--- a/python/test/Ice/enums/Server.py
+++ b/python/test/Ice/enums/Server.py
@@ -18,7 +18,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestIntfI(Test._TestIntfDisp):
+class TestIntfI(Test.TestIntf):
def opByte(self, b1, current=None):
return (b1, b1)
diff --git a/python/test/Ice/exceptions/AllTests.py b/python/test/Ice/exceptions/AllTests.py
index 88d948324b2..f876c844cae 100644
--- a/python/test/Ice/exceptions/AllTests.py
+++ b/python/test/Ice/exceptions/AllTests.py
@@ -13,7 +13,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class EmptyI(Test._EmptyDisp):
+class EmptyI(Test.Empty):
pass
class ServantLocatorI(Ice.ServantLocator):
diff --git a/python/test/Ice/exceptions/ServerAMD.py b/python/test/Ice/exceptions/ServerAMD.py
index 7e3d005ecc1..5c96a48c987 100755
--- a/python/test/Ice/exceptions/ServerAMD.py
+++ b/python/test/Ice/exceptions/ServerAMD.py
@@ -23,7 +23,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class ThrowerI(Test._ThrowerDisp):
+class ThrowerI(Test.Thrower):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/exceptions/TestI.py b/python/test/Ice/exceptions/TestI.py
index ac4e3ab99f2..2f994f3422c 100644
--- a/python/test/Ice/exceptions/TestI.py
+++ b/python/test/Ice/exceptions/TestI.py
@@ -9,7 +9,7 @@
import Ice, Test, array, sys
-class ThrowerI(Test._ThrowerDisp):
+class ThrowerI(Test.Thrower):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/facets/AllTests.py b/python/test/Ice/facets/AllTests.py
index b9fcba386dd..d5e488e781f 100644
--- a/python/test/Ice/facets/AllTests.py
+++ b/python/test/Ice/facets/AllTests.py
@@ -13,7 +13,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class EmptyI(Test._EmptyDisp):
+class EmptyI(Test.Empty):
pass
def allTests(communicator):
diff --git a/python/test/Ice/facets/TestI.py b/python/test/Ice/facets/TestI.py
index c3bcfe20042..4f977b74c32 100644
--- a/python/test/Ice/facets/TestI.py
+++ b/python/test/Ice/facets/TestI.py
@@ -9,31 +9,31 @@
import Test
-class AI(Test._ADisp):
+class AI(Test.A):
def callA(self, current=None):
return "A"
-class BI(Test._BDisp, AI):
+class BI(Test.B, AI):
def callB(self, current=None):
return "B"
-class CI(Test._CDisp, AI):
+class CI(Test.C, AI):
def callC(self, current=None):
return "C"
-class DI(Test._DDisp, BI, CI):
+class DI(Test.D, BI, CI):
def callD(self, current=None):
return "D"
-class EI(Test._EDisp):
+class EI(Test.E):
def callE(self, current=None):
return "E"
-class FI(Test._FDisp, EI):
+class FI(Test.F, EI):
def callF(self, current=None):
return "F"
-class GI(Test._GDisp):
+class GI(Test.G):
def __init__(self, communicator):
self._communicator = communicator
@@ -43,7 +43,7 @@ class GI(Test._GDisp):
def callG(self, current=None):
return "G"
-class HI(Test._HDisp, GI):
+class HI(Test.H, GI):
def __init__(self, communicator):
GI.__init__(self, communicator)
diff --git a/python/test/Ice/faultTolerance/Server.py b/python/test/Ice/faultTolerance/Server.py
index c6c96c99744..684f9933802 100755
--- a/python/test/Ice/faultTolerance/Server.py
+++ b/python/test/Ice/faultTolerance/Server.py
@@ -17,7 +17,7 @@ import Test
def usage(n):
sys.stderr.write("Usage: " + n + " port\n")
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/info/TestI.py b/python/test/Ice/info/TestI.py
index 563e9e8180b..3a2399cc2b1 100644
--- a/python/test/Ice/info/TestI.py
+++ b/python/test/Ice/info/TestI.py
@@ -22,7 +22,7 @@ def getIPConnectionInfo(info):
return info
info = info.underlying
-class MyDerivedClassI(Test._TestIntfDisp):
+class MyDerivedClassI(Test.TestIntf):
def __init__(self):
self.ctx = None
diff --git a/python/test/Ice/inheritance/TestI.py b/python/test/Ice/inheritance/TestI.py
index f4d98732334..e2c93b5b486 100644
--- a/python/test/Ice/inheritance/TestI.py
+++ b/python/test/Ice/inheritance/TestI.py
@@ -9,39 +9,39 @@
import Ice, Test
-class CAI(Test.MA._CADisp):
+class CAI(Test.MA.CADisp):
def caop(self, p, current=None):
return p
-class CBI(Test.MB._CBDisp, CAI):
+class CBI(Test.MB.CBDisp, CAI):
def cbop(self, p, current=None):
return p
-class CCI(Test.MA._CCDisp, CBI):
+class CCI(Test.MA.CCDisp, CBI):
def ccop(self, p, current=None):
return p
-class IAI(Test.MA._IADisp):
+class IAI(Test.MA.IA):
def iaop(self, p, current=None):
return p
-class IB1I(Test.MB._IB1Disp, IAI):
+class IB1I(Test.MB.IB1, IAI):
def ib1op(self, p, current=None):
return p
-class IB2I(Test.MB._IB2Disp, IAI):
+class IB2I(Test.MB.IB2, IAI):
def ib2op(self, p, current=None):
return p
-class ICI(Test.MA._ICDisp, IB1I, IB2I):
+class ICI(Test.MA.IC, IB1I, IB2I):
def icop(self, p, current=None):
return p
-class CDI(Test.MA._CDDisp, CCI, IB1I, IB2I):
+class CDI(Test.MA.CDDisp, CCI, IB1I, IB2I):
def cdop(self, p, current=None):
return p
-class InitialI(Test._InitialDisp):
+class InitialI(Test.Initial):
def __init__(self, adapter):
self._ca = Test.MA.CAPrx.uncheckedCast(adapter.addWithUUID(CAI()))
self._cb = Test.MB.CBPrx.uncheckedCast(adapter.addWithUUID(CBI()))
diff --git a/python/test/Ice/location/AllTests.py b/python/test/Ice/location/AllTests.py
index 4fddaac9ec6..94baf21339e 100644
--- a/python/test/Ice/location/AllTests.py
+++ b/python/test/Ice/location/AllTests.py
@@ -9,7 +9,7 @@
import Ice, Test, sys
-class HelloI(Test._HelloDisp):
+class HelloI(Test.Hello):
def sayHello(self, current=None):
pass
diff --git a/python/test/Ice/location/Server.py b/python/test/Ice/location/Server.py
index ecb351b820d..573bee0c8f3 100755
--- a/python/test/Ice/location/Server.py
+++ b/python/test/Ice/location/Server.py
@@ -19,7 +19,7 @@ if not slice_dir:
Ice.loadSlice("'-I" + slice_dir + "' Test.ice")
import Test
-class ServerLocatorRegistry(Test._TestLocatorRegistryDisp):
+class ServerLocatorRegistry(Test.TestLocatorRegistry):
def __init__(self):
self._adapters = {}
self._objects = {}
@@ -56,7 +56,7 @@ class ServerLocatorRegistry(Test._TestLocatorRegistryDisp):
raise Ice.ObjectNotFoundException()
return self._objects[id]
-class ServerLocator(Test._TestLocatorDisp):
+class ServerLocator(Test.TestLocator):
def __init__(self, registry, registryPrx):
self._registry = registry
@@ -77,7 +77,7 @@ class ServerLocator(Test._TestLocatorDisp):
def getRequestCount(self, current=None):
return self._requestCount
-class ServerManagerI(Test._ServerManagerDisp):
+class ServerManagerI(Test.ServerManager):
def __init__(self, registry, initData):
self._registry = registry
self._communicators = []
@@ -121,11 +121,11 @@ class ServerManagerI(Test._ServerManagerDisp):
i.destroy()
current.adapter.getCommunicator().shutdown()
-class HelloI(Test._HelloDisp):
+class HelloI(Test.Hello):
def sayHello(self, current=None):
pass
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def __init__(self, adapter, adapter2, registry):
self._adapter1 = adapter
self._adapter2 = adapter2
diff --git a/python/test/Ice/objects/Test.ice b/python/test/Ice/objects/Test.ice
index 8ddd5e1d4cc..e7464b00292 100644
--- a/python/test/Ice/objects/Test.ice
+++ b/python/test/Ice/objects/Test.ice
@@ -162,7 +162,7 @@ exception Ex
};
-class Initial
+interface Initial
{
void shutdown();
B getB1();
diff --git a/python/test/Ice/objects/TestI.py b/python/test/Ice/objects/TestI.py
index f711157a741..44d70a90d4c 100644
--- a/python/test/Ice/objects/TestI.py
+++ b/python/test/Ice/objects/TestI.py
@@ -67,7 +67,7 @@ class JI(Ice.InterfaceByValue):
class HI(Test.H):
pass
-class InitialI(Test._InitialDisp):
+class InitialI(Test.Initial):
def __init__(self, adapter):
self._adapter = adapter
self._b1 = BI()
@@ -174,6 +174,6 @@ class InitialI(Test._InitialDisp):
def throwInnerSubEx(self, current=None):
raise Test.Inner.Sub.Ex("Inner::Sub::Ex")
-class UnexpectedObjectExceptionTestI(Test._UnexpectedObjectExceptionTestDisp):
+class UnexpectedObjectExceptionTestI(Test.UnexpectedObjectExceptionTest):
def op(self, current=None):
return Test.AlsoEmpty()
diff --git a/python/test/Ice/operations/OnewaysAMI.py b/python/test/Ice/operations/OnewaysAMI.py
index 79b31c73eb3..4ed393c49a1 100644
--- a/python/test/Ice/operations/OnewaysAMI.py
+++ b/python/test/Ice/operations/OnewaysAMI.py
@@ -45,7 +45,7 @@ def onewaysAMI(communicator, proxy):
cb.check()
try:
- p.begin_ice_isA(Test._MyClassDisp.ice_staticId())
+ p.begin_ice_isA(Test.MyClass.ice_staticId())
test(False)
except RuntimeError:
pass
diff --git a/python/test/Ice/operations/OnewaysFuture.py b/python/test/Ice/operations/OnewaysFuture.py
index b5caefbe744..9da67a45c7c 100644
--- a/python/test/Ice/operations/OnewaysFuture.py
+++ b/python/test/Ice/operations/OnewaysFuture.py
@@ -21,7 +21,7 @@ def onewaysFuture(communicator, proxy):
f.sent()
try:
- p.ice_isAAsync(Test._MyClassDisp.ice_staticId())
+ p.ice_isAAsync(Test.MyClass.ice_staticId())
test(False)
except RuntimeError:
pass
diff --git a/python/test/Ice/operations/ServerAMD.py b/python/test/Ice/operations/ServerAMD.py
index 0b727f42970..a7cce20ca50 100755
--- a/python/test/Ice/operations/ServerAMD.py
+++ b/python/test/Ice/operations/ServerAMD.py
@@ -37,7 +37,7 @@ class FutureThread(threading.Thread):
time.sleep(0.01)
self.future.set_result(self.result)
-class MyDerivedClassI(Test._MyDerivedClassDisp):
+class MyDerivedClassI(Test.MyDerivedClass):
def __init__(self):
self.threads = []
self.threadLock = threading.Lock()
@@ -46,19 +46,19 @@ class MyDerivedClassI(Test._MyDerivedClassDisp):
def ice_isA(self, id, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_isA(self, id, current)
+ return Test.MyDerivedClass.ice_isA(self, id, current)
def ice_ping(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- Test._MyDerivedClassDisp.ice_ping(self, current)
+ Test.MyDerivedClass.ice_ping(self, current)
def ice_ids(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_ids(self, current)
+ return Test.MyDerivedClass.ice_ids(self, current)
def ice_id(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_id(self, current)
+ return Test.MyDerivedClass.ice_id(self, current)
def shutdown(self, current=None):
with self.threadLock:
diff --git a/python/test/Ice/operations/TestI.py b/python/test/Ice/operations/TestI.py
index 0a3b39966ff..04ef6f468ed 100644
--- a/python/test/Ice/operations/TestI.py
+++ b/python/test/Ice/operations/TestI.py
@@ -13,26 +13,26 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class MyDerivedClassI(Test._MyDerivedClassDisp):
+class MyDerivedClassI(Test.MyDerivedClass):
def __init__(self):
self.lock = threading.Lock()
self.opByteSOnewayCount = 0
def ice_isA(self, id, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_isA(self, id, current)
+ return Test.MyDerivedClass.ice_isA(self, id, current)
def ice_ping(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- Test._MyDerivedClassDisp.ice_ping(self, current)
+ Test.MyDerivedClass.ice_ping(self, current)
def ice_ids(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_ids(self, current)
+ return Test.MyDerivedClass.ice_ids(self, current)
def ice_id(self, current=None):
test(current.mode == Ice.OperationMode.Nonmutating)
- return Test._MyDerivedClassDisp.ice_id(self, current)
+ return Test.MyDerivedClass.ice_id(self, current)
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/operations/Twoways.py b/python/test/Ice/operations/Twoways.py
index 1e473884823..f68fd306c47 100644
--- a/python/test/Ice/operations/Twoways.py
+++ b/python/test/Ice/operations/Twoways.py
@@ -103,7 +103,7 @@ def twoways(communicator, p):
#
# ice_isA
#
- test(p.ice_isA(Test._MyClassDisp.ice_staticId()))
+ test(p.ice_isA(Test.MyClass.ice_staticId()))
#
# ice_ids
@@ -117,13 +117,13 @@ def twoways(communicator, p):
#
# ice_id
#
- test(p.ice_id() == Test._MyDerivedClassDisp.ice_staticId())
+ test(p.ice_id() == Test.MyDerivedClass.ice_staticId())
#
# Prx ice_staticId
#
- test(Test.MyClassPrx.ice_staticId() == Test._MyClassDisp.ice_staticId())
- test(Test.MyDerivedClassPrx.ice_staticId() == Test._MyDerivedClassDisp.ice_staticId())
+ test(Test.MyClassPrx.ice_staticId() == Test.MyClass.ice_staticId())
+ test(Test.MyDerivedClassPrx.ice_staticId() == Test.MyDerivedClass.ice_staticId())
test(Ice.ObjectPrx.ice_staticId() == Ice.Object.ice_staticId())
#
diff --git a/python/test/Ice/operations/TwowaysAMI.py b/python/test/Ice/operations/TwowaysAMI.py
index 5f7cc1445c0..6f754f9e3e6 100644
--- a/python/test/Ice/operations/TwowaysAMI.py
+++ b/python/test/Ice/operations/TwowaysAMI.py
@@ -757,7 +757,7 @@ def twowaysAMI(communicator, p):
cb.check()
cb = Callback()
- p.begin_ice_isA(Test._MyClassDisp.ice_staticId(), cb.isA, cb.exCB)
+ p.begin_ice_isA(Test.MyClass.ice_staticId(), cb.isA, cb.exCB)
cb.check()
cb = Callback()
diff --git a/python/test/Ice/operations/TwowaysFuture.py b/python/test/Ice/operations/TwowaysFuture.py
index 0b24cc7ac08..abc4c5aa77e 100644
--- a/python/test/Ice/operations/TwowaysFuture.py
+++ b/python/test/Ice/operations/TwowaysFuture.py
@@ -902,7 +902,7 @@ def twowaysFuture(communicator, p):
f = p.ice_pingAsync()
test(f.result() is None)
- f = p.ice_isAAsync(Test._MyClassDisp.ice_staticId())
+ f = p.ice_isAAsync(Test.MyClass.ice_staticId())
test(f.result())
f = p.ice_idAsync()
diff --git a/python/test/Ice/optional/Server.py b/python/test/Ice/optional/Server.py
index 46cd0fbebf2..daf66a2c91e 100755
--- a/python/test/Ice/optional/Server.py
+++ b/python/test/Ice/optional/Server.py
@@ -14,7 +14,7 @@ import Ice
Ice.loadSlice('Test.ice')
import Test
-class InitialI(Test._InitialDisp):
+class InitialI(Test.Initial):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/optional/ServerAMD.py b/python/test/Ice/optional/ServerAMD.py
index c2cbe60ceec..67e8db9baab 100755
--- a/python/test/Ice/optional/ServerAMD.py
+++ b/python/test/Ice/optional/ServerAMD.py
@@ -14,7 +14,7 @@ import Ice
Ice.loadSlice('TestAMD.ice')
import Test
-class InitialI(Test._InitialDisp):
+class InitialI(Test.Initial):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/proxy/ServerAMD.py b/python/test/Ice/proxy/ServerAMD.py
index 6a310161383..72d6e41bc55 100755
--- a/python/test/Ice/proxy/ServerAMD.py
+++ b/python/test/Ice/proxy/ServerAMD.py
@@ -19,7 +19,7 @@ if not slice_dir:
Ice.loadSlice("'-I" + slice_dir + "' TestAMD.ice")
import Test
-class MyDerivedClassI(Test._MyDerivedClassDisp):
+class MyDerivedClassI(Test.MyDerivedClass):
def __init__(self):
self.ctx = None
@@ -34,7 +34,7 @@ class MyDerivedClassI(Test._MyDerivedClassDisp):
def ice_isA(self, s, current):
self.ctx = current.ctx
- return Test._MyDerivedClassDisp.ice_isA(self, s, current)
+ return Test.MyDerivedClass.ice_isA(self, s, current)
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp")
diff --git a/python/test/Ice/proxy/TestI.py b/python/test/Ice/proxy/TestI.py
index 3c6be1cba94..5ee763ab1ee 100644
--- a/python/test/Ice/proxy/TestI.py
+++ b/python/test/Ice/proxy/TestI.py
@@ -10,7 +10,7 @@
import Ice, Test
import time
-class MyDerivedClassI(Test._MyDerivedClassDisp):
+class MyDerivedClassI(Test.MyDerivedClass):
def __init__(self):
self.ctx = None
@@ -25,4 +25,4 @@ class MyDerivedClassI(Test._MyDerivedClassDisp):
def ice_isA(self, s, current):
self.ctx = current.ctx
- return Test._MyDerivedClassDisp.ice_isA(self, s, current)
+ return Test.MyDerivedClass.ice_isA(self, s, current)
diff --git a/python/test/Ice/servantLocator/TestAMDI.py b/python/test/Ice/servantLocator/TestAMDI.py
index 2b53c01863f..40814c1a643 100644
--- a/python/test/Ice/servantLocator/TestAMDI.py
+++ b/python/test/Ice/servantLocator/TestAMDI.py
@@ -14,7 +14,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def requestFailedException(self, current=None):
return None
diff --git a/python/test/Ice/servantLocator/TestActivationAMDI.py b/python/test/Ice/servantLocator/TestActivationAMDI.py
index af47ff448b5..f5ac04384a6 100644
--- a/python/test/Ice/servantLocator/TestActivationAMDI.py
+++ b/python/test/Ice/servantLocator/TestActivationAMDI.py
@@ -11,7 +11,7 @@ import os, sys, traceback, time
import Ice, Test, TestAMDI
-class TestActivationAMDI(Test._TestActivationDisp):
+class TestActivationAMDI(Test.TestActivation):
def activateServantLocator(self, activate, current=None):
if(activate):
diff --git a/python/test/Ice/servantLocator/TestActivationI.py b/python/test/Ice/servantLocator/TestActivationI.py
index fc01f072f34..4e795914b79 100644
--- a/python/test/Ice/servantLocator/TestActivationI.py
+++ b/python/test/Ice/servantLocator/TestActivationI.py
@@ -11,7 +11,7 @@ import os, sys, traceback, time
import Ice, Test, TestI
-class TestActivationI(Test._TestActivationDisp):
+class TestActivationI(Test.TestActivation):
def activateServantLocator(self, activate, current=None):
if activate:
diff --git a/python/test/Ice/servantLocator/TestI.py b/python/test/Ice/servantLocator/TestI.py
index 4b9eb26c0cf..6063eb7e288 100644
--- a/python/test/Ice/servantLocator/TestI.py
+++ b/python/test/Ice/servantLocator/TestI.py
@@ -14,7 +14,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def requestFailedException(self, current=None):
pass
diff --git a/python/test/Ice/slicing/exceptions/AllTests.py b/python/test/Ice/slicing/exceptions/AllTests.py
index 6a8dc126729..1a56ee2b282 100644
--- a/python/test/Ice/slicing/exceptions/AllTests.py
+++ b/python/test/Ice/slicing/exceptions/AllTests.py
@@ -189,7 +189,7 @@ class Callback(CallbackBase):
test(False)
self.called()
-class RelayI(Test._RelayDisp):
+class RelayI(Test.Relay):
def knownPreservedAsBase(self, current=None):
ex = Test.KnownPreservedDerived()
ex.b = "base"
diff --git a/python/test/Ice/slicing/exceptions/Server.py b/python/test/Ice/slicing/exceptions/Server.py
index 223cdb31ebd..44a58914a5f 100755
--- a/python/test/Ice/slicing/exceptions/Server.py
+++ b/python/test/Ice/slicing/exceptions/Server.py
@@ -13,7 +13,7 @@ import Ice
Ice.loadSlice('-I. --all ServerPrivate.ice')
import Test
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/slicing/exceptions/ServerAMD.py b/python/test/Ice/slicing/exceptions/ServerAMD.py
index d398e502e77..c4a3ab4336b 100755
--- a/python/test/Ice/slicing/exceptions/ServerAMD.py
+++ b/python/test/Ice/slicing/exceptions/ServerAMD.py
@@ -14,7 +14,7 @@ import Ice
Ice.loadSlice('-I. --all ServerPrivateAMD.ice')
import Test
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
diff --git a/python/test/Ice/slicing/objects/Server.py b/python/test/Ice/slicing/objects/Server.py
index b1780ef5881..f112a643c52 100755
--- a/python/test/Ice/slicing/objects/Server.py
+++ b/python/test/Ice/slicing/objects/Server.py
@@ -18,7 +18,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def SBaseAsObject(self, current=None):
sb = Test.SBase()
sb.sb = "SBase.sb"
diff --git a/python/test/Ice/slicing/objects/ServerAMD.py b/python/test/Ice/slicing/objects/ServerAMD.py
index f64a6f13af9..2cdc89e5f7d 100755
--- a/python/test/Ice/slicing/objects/ServerAMD.py
+++ b/python/test/Ice/slicing/objects/ServerAMD.py
@@ -18,7 +18,7 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class TestI(Test._TestIntfDisp):
+class TestI(Test.TestIntf):
def SBaseAsObject(self, current=None):
sb = Test.SBase()
sb.sb = "SBase.sb"
diff --git a/python/test/Ice/thread/TestI.py b/python/test/Ice/thread/TestI.py
index 5270f46ec64..cb7245ddd50 100644
--- a/python/test/Ice/thread/TestI.py
+++ b/python/test/Ice/thread/TestI.py
@@ -49,11 +49,11 @@ class ThreadHook(Ice.ThreadNotification):
with self.cond:
return self.threadStopCount
-class TestIntfI(Test._TestIntfDisp):
+class TestIntfI(Test.TestIntf):
def sleep(self, ms, current = None):
time.sleep(ms / 1000.0)
-class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
+class RemoteCommunicatorI(Test.RemoteCommunicator):
def __init__(self, communicator, hook):
self.communicator = communicator
self.hook = hook
@@ -79,7 +79,7 @@ class RemoteCommunicatorI(Test._RemoteCommunicatorDisp):
def destroy(self, current = None):
self.communicator.destroy()
-class RemoteCommunicatorFactoryI(Test._RemoteCommunicatorFactoryDisp):
+class RemoteCommunicatorFactoryI(Test.RemoteCommunicatorFactory):
def createCommunicator(self, props, current = None):
#
diff --git a/python/test/Ice/timeout/Server.py b/python/test/Ice/timeout/Server.py
index 8834fe8d1ce..28dd620eac5 100755
--- a/python/test/Ice/timeout/Server.py
+++ b/python/test/Ice/timeout/Server.py
@@ -29,7 +29,7 @@ class ActivateAdapterThread(threading.Thread):
time.sleep(self._timeout / 1000.0)
self._adapter.activate()
-class TimeoutI(Test._TimeoutDisp):
+class TimeoutI(Test.Timeout):
def op(self, current=None):
pass
diff --git a/python/test/Slice/escape/Client.py b/python/test/Slice/escape/Client.py
index 6165c266c73..126d2810482 100755
--- a/python/test/Slice/escape/Client.py
+++ b/python/test/Slice/escape/Client.py
@@ -24,15 +24,15 @@ Ice.loadSlice('Clash.ice')
import _and
-class delI(_and._delDisp):
+class delI(_and._del):
def _elifAsync(self, _else, current=None):
pass
-class execI(_and._execDisp):
+class execI(_and._exec):
def _finally(self, current=None):
assert current.operation == "finally"
-class ifI(_and._ifDisp):
+class ifI(_and._if):
def _elifAsync(self, _else, current=None):
pass
def _finally(self, current=None):
diff --git a/scripts/Controller.py b/scripts/Controller.py
index 421569e1523..69eecfc54f6 100755
--- a/scripts/Controller.py
+++ b/scripts/Controller.py
@@ -82,7 +82,7 @@ class ControllerDriver(Driver):
Ice.loadSlice(os.path.join(toplevel, "scripts", "Controller.ice"))
import Test
- class TestCaseI(getServantClass("Test.Common", "TestCase")):
+ class TestCaseI(Test.Common.TestCase):
def __init__(self, driver, current):
self.driver = driver
self.current = current
diff --git a/scripts/Util.py b/scripts/Util.py
index 3f6e66b4745..0064c751361 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -42,12 +42,6 @@ def val(v, escapeQuotes=False, quoteValue=True):
else:
return str(v)
-def getServantClass(module, name):
- cls = inspect.getmembers(sys.modules[module], lambda a: inspect.isclass(a) and a.__name__ == name)
- if not cls:
- cls = inspect.getmembers(sys.modules[module], lambda a: inspect.isclass(a) and a.__name__ == "_{0}Disp".format(name))
- return cls[0][1]
-
def getIceSoVersion():
config = open(os.path.join(toplevel, "cpp", "include", "IceUtil", "Config.h"), "r")
intVersion = int(re.search("ICE_INT_VERSION ([0-9]*)", config.read()).group(1))
@@ -1782,7 +1776,7 @@ class RemoteProcessController(ProcessController):
comm = current.driver.getCommunicator()
import Test
- class ProcessControllerRegistryI(getServantClass("Test.Common", "ProcessControllerRegistry")):
+ class ProcessControllerRegistryI(Test.Common.ProcessControllerRegistry):
def __init__(self, remoteProcessController):
self.remoteProcessController = remoteProcessController
@@ -2702,6 +2696,9 @@ class CppBasedMapping(Mapping):
env[platform.getLdPathEnvName()] = Mapping.getByName("cpp").getLibDir(process, current)
return env
+ def getNugetPackage(self, compiler, version):
+ return "zeroc.ice.{0}.{1}".format(compiler, version)
+
class ObjCMapping(CppBasedMapping):
def getTestSuites(self, ids=[]):