diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-04-07 17:25:53 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-04-07 17:25:53 +0800 |
commit | cf38d16fdb87af3a26624233deeb9678730c69f9 (patch) | |
tree | 1bc2f4fbd8747850e40ec77eacd46b33c05c7160 /java/test/Ice/stream/Client.java | |
parent | minor fixes for C# multicast demo config files (diff) | |
download | ice-cf38d16fdb87af3a26624233deeb9678730c69f9.tar.bz2 ice-cf38d16fdb87af3a26624233deeb9678730c69f9.tar.xz ice-cf38d16fdb87af3a26624233deeb9678730c69f9.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2985 - Fix bug with C# & Java input & output streams
Diffstat (limited to 'java/test/Ice/stream/Client.java')
-rw-r--r-- | java/test/Ice/stream/Client.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/java/test/Ice/stream/Client.java b/java/test/Ice/stream/Client.java index 375be462cdc..437eb3e6559 100644 --- a/java/test/Ice/stream/Client.java +++ b/java/test/Ice/stream/Client.java @@ -136,6 +136,41 @@ public class Client System.out.flush(); { + byte[] data = new byte[0]; + in = Ice.Util.createInputStream(communicator, data); + in.destroy(); + } + + { + out = Ice.Util.createOutputStream(communicator); + out.startEncapsulation(); + out.writeBool(true); + out.endEncapsulation(); + byte[] data = out.finished(); + out.destroy(); + + in = Ice.Util.createInputStream(communicator, data); + in.startEncapsulation(); + test(in.readBool()); + in.endEncapsulation(); + in.destroy(); + } + + { + byte[] data = new byte[0]; + in = Ice.Util.createInputStream(communicator, data); + try + { + in.readBool(); + test(false); + } + catch(Ice.UnmarshalOutOfBoundsException ex) + { + } + in.destroy(); + } + + { out = Ice.Util.createOutputStream(communicator); out.writeBool(true); byte[] data = out.finished(); |