summaryrefslogtreecommitdiff
path: root/java/demo/Ice/hello/Client.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
committerBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
commit2cb718a85b417fb6a58be04fe1f102f733b8d39c (patch)
tree26549f37c7307037f0bf8bf0d42b6c1da7eaeb4b /java/demo/Ice/hello/Client.java
parentFixed bug 2503 (diff)
downloadice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.bz2
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.xz
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.zip
Squashed commit of the following:
commit 0ba15449d9dd44933d82cb643efded9dee12c5af Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:48:07 2007 -0400 Documented updates commit cf49ee5a73bc62d1b6814dec5d9f288f0f45901d Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:38:25 2007 -0400 Optimized implementation of various Prx ice_xxx functions/methods commit 706209d6d1a4e894fecf19dd1c0c3b6f12ef5842 Author: Bernard Normier <bernard@zeroc.com> Date: Fri Sep 28 14:34:02 2007 -0400 Updated code-generation to "overwrite" various Ice::ObjectPrx ice_ operations.
Diffstat (limited to 'java/demo/Ice/hello/Client.java')
-rw-r--r--java/demo/Ice/hello/Client.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/java/demo/Ice/hello/Client.java b/java/demo/Ice/hello/Client.java
index cb8f29a5e68..47ab65ea2a6 100644
--- a/java/demo/Ice/hello/Client.java
+++ b/java/demo/Ice/hello/Client.java
@@ -69,10 +69,10 @@ public class Client extends Ice.Application
System.err.println("invalid proxy");
return 1;
}
- HelloPrx oneway = HelloPrxHelper.uncheckedCast(twoway.ice_oneway());
- HelloPrx batchOneway = HelloPrxHelper.uncheckedCast(twoway.ice_batchOneway());
- HelloPrx datagram = HelloPrxHelper.uncheckedCast(twoway.ice_datagram());
- HelloPrx batchDatagram = HelloPrxHelper.uncheckedCast(twoway.ice_batchDatagram());
+ HelloPrx oneway = (HelloPrx)twoway.ice_oneway();
+ HelloPrx batchOneway = (HelloPrx)twoway.ice_batchOneway();
+ HelloPrx datagram = (HelloPrx)twoway.ice_datagram();
+ HelloPrx batchDatagram = (HelloPrx)twoway.ice_batchDatagram();
boolean secure = false;
int timeout = -1;
@@ -143,9 +143,9 @@ public class Client extends Ice.Application
timeout = -1;
}
- twoway = HelloPrxHelper.uncheckedCast(twoway.ice_timeout(timeout));
- oneway = HelloPrxHelper.uncheckedCast(oneway.ice_timeout(timeout));
- batchOneway = HelloPrxHelper.uncheckedCast(batchOneway.ice_timeout(timeout));
+ twoway = (HelloPrx)twoway.ice_timeout(timeout);
+ oneway = (HelloPrx)oneway.ice_timeout(timeout);
+ batchOneway = (HelloPrx)batchOneway.ice_timeout(timeout);
if(timeout == -1)
{
@@ -180,11 +180,11 @@ public class Client extends Ice.Application
{
secure = !secure;
- twoway = HelloPrxHelper.uncheckedCast(twoway.ice_secure(secure));
- oneway = HelloPrxHelper.uncheckedCast(oneway.ice_secure(secure));
- batchOneway = HelloPrxHelper.uncheckedCast(batchOneway.ice_secure(secure));
- datagram = HelloPrxHelper.uncheckedCast(datagram.ice_secure(secure));
- batchDatagram = HelloPrxHelper.uncheckedCast(batchDatagram.ice_secure(secure));
+ twoway = (HelloPrx)twoway.ice_secure(secure);
+ oneway = (HelloPrx)oneway.ice_secure(secure);
+ batchOneway = (HelloPrx)batchOneway.ice_secure(secure);
+ datagram = (HelloPrx)datagram.ice_secure(secure);
+ batchDatagram = (HelloPrx)batchDatagram.ice_secure(secure);
if(secure)
{