diff options
Diffstat (limited to 'java-compat/test/src')
-rw-r--r-- | java-compat/test/src/main/java/test/Ice/ami/Test.ice | 2 | ||||
-rw-r--r-- | java-compat/test/src/main/java/test/Ice/ami/TestI.java | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/java-compat/test/src/main/java/test/Ice/ami/Test.ice b/java-compat/test/src/main/java/test/Ice/ami/Test.ice index 37ba5fc14c4..00374df0262 100644 --- a/java-compat/test/src/main/java/test/Ice/ami/Test.ice +++ b/java-compat/test/src/main/java/test/Ice/ami/Test.ice @@ -58,7 +58,7 @@ interface TestIntf float opFloat(float f); double opDouble(double d); - void pingBiDir(Ice::Identity id); + void pingBiDir(PingReply* reply); } interface TestIntfController diff --git a/java-compat/test/src/main/java/test/Ice/ami/TestI.java b/java-compat/test/src/main/java/test/Ice/ami/TestI.java index 61f23cf8696..1ea1830d665 100644 --- a/java-compat/test/src/main/java/test/Ice/ami/TestI.java +++ b/java-compat/test/src/main/java/test/Ice/ami/TestI.java @@ -13,6 +13,7 @@ import test.Ice.ami.Test._TestIntfDisp; import test.Ice.ami.Test.AMD_TestIntf_startDispatch; import test.Ice.ami.Test.CloseMode; import test.Ice.ami.Test.TestIntfException; +import test.Ice.ami.Test.PingReplyPrx; import test.Ice.ami.Test.PingReplyPrxHelper; public class TestI extends _TestIntfDisp @@ -118,9 +119,11 @@ public class TestI extends _TestIntfDisp } @Override - public void pingBiDir(Ice.Identity id, Ice.Current current) + public void pingBiDir(PingReplyPrx reply, Ice.Current current) { - PingReplyPrxHelper.uncheckedCast(current.con.createProxy(id)).reply(); + reply = PingReplyPrxHelper.uncheckedCast(reply.ice_fixed(current.con)); + Ice.AsyncResult result = reply.begin_reply(); + reply.end_reply(result); } @Override |