diff options
author | Mark Spruiell <mes@zeroc.com> | 2011-05-04 17:51:35 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2011-05-04 17:51:35 -0700 |
commit | 9afd50c19bceeb2be64bf0c7c6d7a0c2c126dde8 (patch) | |
tree | 44786ffd2f2bf17f6872f97ea109cb09243d9cf9 /java/test/Ice/operations/OnewaysNewAMI.java | |
parent | minor doc fixes for RHEL (diff) | |
download | ice-9afd50c19bceeb2be64bf0c7c6d7a0c2c126dde8.tar.bz2 ice-9afd50c19bceeb2be64bf0c7c6d7a0c2c126dde8.tar.xz ice-9afd50c19bceeb2be64bf0c7c6d7a0c2c126dde8.zip |
bug 4976 - inconsistent operation mode for pseudo ops
Diffstat (limited to 'java/test/Ice/operations/OnewaysNewAMI.java')
-rw-r--r-- | java/test/Ice/operations/OnewaysNewAMI.java | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/java/test/Ice/operations/OnewaysNewAMI.java b/java/test/Ice/operations/OnewaysNewAMI.java index 7c69780e3c4..2f81d75f1fb 100644 --- a/java/test/Ice/operations/OnewaysNewAMI.java +++ b/java/test/Ice/operations/OnewaysNewAMI.java @@ -9,6 +9,8 @@ package test.Ice.operations; +import test.Ice.operations.Test.Callback_MyClass_opIdempotent; +import test.Ice.operations.Test.Callback_MyClass_opNonmutating; import test.Ice.operations.Test.Callback_MyClass_opVoid; import test.Ice.operations.Test.MyClass; import test.Ice.operations.Test.MyClassPrx; @@ -75,7 +77,7 @@ class OnewaysNewAMI void noException(Ice.LocalException ex) { test(false); - } + } } static void @@ -99,7 +101,7 @@ class OnewaysNewAMI { cb.noException(ex); } - + public void sent(boolean sentSynchronously) { @@ -158,7 +160,7 @@ class OnewaysNewAMI { cb.noException(ex); } - + public void sent(boolean sentSynchronously) { @@ -170,6 +172,58 @@ class OnewaysNewAMI } { + final Callback cb = new Callback(); + Callback_MyClass_opIdempotent callback = new Callback_MyClass_opIdempotent() + { + public void + response() + { + test(false); + } + + public void + exception(Ice.LocalException ex) + { + cb.noException(ex); + } + + public void + sent(boolean sentSynchronously) + { + cb.sent(sentSynchronously); + } + }; + p.begin_opIdempotent(callback); + cb.check(); + } + + { + final Callback cb = new Callback(); + Callback_MyClass_opNonmutating callback = new Callback_MyClass_opNonmutating() + { + public void + response() + { + test(false); + } + + public void + exception(Ice.LocalException ex) + { + cb.noException(ex); + } + + public void + sent(boolean sentSynchronously) + { + cb.sent(sentSynchronously); + } + }; + p.begin_opNonmutating(callback); + cb.check(); + } + + { try { p.begin_opByte((byte)0xff, (byte)0x0f); |