diff options
author | Bernard Normier <bernard@zeroc.com> | 2014-07-10 16:51:36 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2014-07-10 16:51:36 -0400 |
commit | 7f767642e79e2775a958781011f13e3d1710c7bd (patch) | |
tree | fdb3eb1f826305d0bf3dd659d70c3930001f80c0 /java/test/Ice/exceptions/AllTests.java | |
parent | ICE-5573 - .NET TimeoutException ignores Dispatcher (diff) | |
download | ice-7f767642e79e2775a958781011f13e3d1710c7bd.tar.bz2 ice-7f767642e79e2775a958781011f13e3d1710c7bd.tar.xz ice-7f767642e79e2775a958781011f13e3d1710c7bd.zip |
Fixed ICE-5379, Object Adapter should reject null servant, in C++, Java, C# and JS
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r-- | java/test/Ice/exceptions/AllTests.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java index 0c0256b9bb7..bc556b0b5eb 100644 --- a/java/test/Ice/exceptions/AllTests.java +++ b/java/test/Ice/exceptions/AllTests.java @@ -1431,6 +1431,24 @@ public class AllTests { } + try + { + adapter.add(obj, communicator.stringToIdentity("")); + test(false); + } + catch(Ice.IllegalIdentityException ex) + { + test(ex.id.name.equals("")); + } + try + { + adapter.add(null, communicator.stringToIdentity("x")); + test(false); + } + catch(Ice.IllegalServantException ex) + { + } + adapter.remove(communicator.stringToIdentity("x")); try { |