diff options
Diffstat (limited to 'java/test/Ice/operations/Server.java')
-rw-r--r-- | java/test/Ice/operations/Server.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/test/Ice/operations/Server.java b/java/test/Ice/operations/Server.java index 61cdbd95402..83b6c48698a 100644 --- a/java/test/Ice/operations/Server.java +++ b/java/test/Ice/operations/Server.java @@ -14,9 +14,7 @@ public class Server { communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp"); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); - Ice.Identity id = communicator.stringToIdentity("test"); - adapter.add(new MyDerivedClassI(adapter, id), id); - adapter.add(new TestCheckedCastI(), communicator.stringToIdentity("context")); + adapter.add(new MyDerivedClassI(), communicator.stringToIdentity("test")); adapter.activate(); communicator.waitForShutdown(); |