summaryrefslogtreecommitdiff
path: root/java/test/Ice/operations/MyDerivedClassI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2011-05-04 17:51:35 -0700
committerMark Spruiell <mes@zeroc.com>2011-05-04 17:51:35 -0700
commit9afd50c19bceeb2be64bf0c7c6d7a0c2c126dde8 (patch)
tree44786ffd2f2bf17f6872f97ea109cb09243d9cf9 /java/test/Ice/operations/MyDerivedClassI.java
parentminor doc fixes for RHEL (diff)
downloadice-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/MyDerivedClassI.java')
-rw-r--r--java/test/Ice/operations/MyDerivedClassI.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/java/test/Ice/operations/MyDerivedClassI.java b/java/test/Ice/operations/MyDerivedClassI.java
index 032dbdd62f0..8666bceeba5 100644
--- a/java/test/Ice/operations/MyDerivedClassI.java
+++ b/java/test/Ice/operations/MyDerivedClassI.java
@@ -54,6 +54,38 @@ public final class MyDerivedClassI extends MyDerivedClass
}
}
+ //
+ // Override the Object "pseudo" operations to verify the operation mode.
+ //
+
+ public boolean
+ ice_isA(String id, Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Nonmutating);
+ return super.ice_isA(id, current);
+ }
+
+ public void
+ ice_ping(Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Nonmutating);
+ super.ice_ping(current);
+ }
+
+ public String[]
+ ice_ids(Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Nonmutating);
+ return super.ice_ids(current);
+ }
+
+ public String
+ ice_id(Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Nonmutating);
+ return super.ice_id(current);
+ }
+
public void
shutdown(Ice.Current current)
{
@@ -456,6 +488,18 @@ public final class MyDerivedClassI extends MyDerivedClass
}
public void
+ opIdempotent(Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Idempotent);
+ }
+
+ public void
+ opNonmutating(Ice.Current current)
+ {
+ test(current.mode == Ice.OperationMode.Nonmutating);
+ }
+
+ public void
opDerived(Ice.Current current)
{
}