diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-09-03 14:40:42 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-09-03 14:40:42 +0200 |
commit | 9c5efa7f3c9049d16e6e1d3e2259a04fcf6812a8 (patch) | |
tree | 1b27e7ae3164dcb3b34efe7ba97303a218f3f555 /java/test | |
parent | Update Metrics tables to use introspection (diff) | |
download | ice-9c5efa7f3c9049d16e6e1d3e2259a04fcf6812a8.tar.bz2 ice-9c5efa7f3c9049d16e6e1d3e2259a04fcf6812a8.tar.xz ice-9c5efa7f3c9049d16e6e1d3e2259a04fcf6812a8.zip |
Bug fixes
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/Ice/admin/RemoteCommunicatorFactoryI.java | 9 | ||||
-rw-r--r-- | java/test/IceBox/admin/TestServiceI.java | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/java/test/Ice/admin/RemoteCommunicatorFactoryI.java b/java/test/Ice/admin/RemoteCommunicatorFactoryI.java index afa91efce5d..99a1730200d 100644 --- a/java/test/Ice/admin/RemoteCommunicatorFactoryI.java +++ b/java/test/Ice/admin/RemoteCommunicatorFactoryI.java @@ -13,6 +13,13 @@ import test.Ice.admin.Test.*; public class RemoteCommunicatorFactoryI extends _RemoteCommunicatorFactoryDisp { + class TestI implements Ice.NativePropertiesAdmin + { + public void addUpdateCallback(Ice.PropertiesAdminUpdateCallback callback){} + public void removeUpdateCallback(Ice.PropertiesAdminUpdateCallback callback){} + }; + + public RemoteCommunicatorPrx createCommunicator(java.util.Map<String, String> props, Ice.Current current) { // @@ -44,7 +51,7 @@ public class RemoteCommunicatorFactoryI extends _RemoteCommunicatorFactoryDisp Ice.NativePropertiesAdmin admin = (Ice.NativePropertiesAdmin)propFacet; assert admin != null; - admin.setUpdateCallback(servant); + admin.addUpdateCallback(servant); Ice.ObjectPrx proxy = current.adapter.addWithUUID(servant); return RemoteCommunicatorPrxHelper.uncheckedCast(proxy); diff --git a/java/test/IceBox/admin/TestServiceI.java b/java/test/IceBox/admin/TestServiceI.java index 10c09ba5916..b57b05dde6c 100644 --- a/java/test/IceBox/admin/TestServiceI.java +++ b/java/test/IceBox/admin/TestServiceI.java @@ -28,7 +28,7 @@ public class TestServiceI implements IceBox.Service if(propFacet != null) { Ice.NativePropertiesAdmin admin = (Ice.NativePropertiesAdmin)propFacet; - admin.setUpdateCallback(facet); + admin.addUpdateCallback(facet); } } |