summaryrefslogtreecommitdiff
path: root/swift/test/Ice/binding/TestI.swift
diff options
context:
space:
mode:
Diffstat (limited to 'swift/test/Ice/binding/TestI.swift')
-rw-r--r--swift/test/Ice/binding/TestI.swift8
1 files changed, 5 insertions, 3 deletions
diff --git a/swift/test/Ice/binding/TestI.swift b/swift/test/Ice/binding/TestI.swift
index 6c6afe09f6d..4e9f7e5f696 100644
--- a/swift/test/Ice/binding/TestI.swift
+++ b/swift/test/Ice/binding/TestI.swift
@@ -34,8 +34,9 @@ class RemoteCommunicatorI: RemoteCommunicator {
}
communicator.getProperties().setProperty(key: "\(name).ThreadPool.Size", value: "1")
let adapter = try communicator.createObjectAdapterWithEndpoints(name: name, endpoints: endpoints)
- return try uncheckedCast(prx: current.adapter!.addWithUUID(RemoteObjectAdapterI(adapter)),
- type: RemoteObjectAdapterPrx.self)
+ return try uncheckedCast(
+ prx: current.adapter!.addWithUUID(RemoteObjectAdapterDisp(RemoteObjectAdapterI(adapter))),
+ type: RemoteObjectAdapterPrx.self)
} catch let ex as Ice.SocketException {
retry -= 1
if retry == 0 {
@@ -57,7 +58,8 @@ class RemoteCommunicatorI: RemoteCommunicator {
class RemoteObjectAdapterI: RemoteObjectAdapter {
init(_ adapter: Ice.ObjectAdapter ) throws {
_adapter = adapter
- _testIntf = try uncheckedCast(prx: _adapter.add(servant: TestI(), id: Ice.stringToIdentity("test")),
+ _testIntf = try uncheckedCast(prx: _adapter.add(servant: TestIntfDisp(TestI()),
+ id: Ice.stringToIdentity("test")),
type: TestIntfPrx.self)
try _adapter.activate()
}