diff options
Diffstat (limited to 'java/test/Ice/operations/MyDerivedClassI.java')
-rw-r--r-- | java/test/Ice/operations/MyDerivedClassI.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/java/test/Ice/operations/MyDerivedClassI.java b/java/test/Ice/operations/MyDerivedClassI.java index 503d95907e3..a38638886b4 100644 --- a/java/test/Ice/operations/MyDerivedClassI.java +++ b/java/test/Ice/operations/MyDerivedClassI.java @@ -9,6 +9,15 @@ public final class MyDerivedClassI extends Test.MyDerivedClass { + private static void + test(boolean b) + { + if(!b) + { + throw new RuntimeException(); + } + } + public MyDerivedClassI(Ice.ObjectAdapter adapter, Ice.Identity identity) { @@ -27,6 +36,22 @@ public final class MyDerivedClassI extends Test.MyDerivedClass { } + public void + opSleep(int duration, Ice.Current current) + { + while(true) + { + try + { + Thread.currentThread().sleep(duration); + break; + } + catch(java.lang.InterruptedException ex) + { + } + } + } + public boolean opBool(boolean p1, boolean p2, Ice.BooleanHolder p3, @@ -304,6 +329,17 @@ public final class MyDerivedClassI extends Test.MyDerivedClass return current.ctx; } + public void + opDoubleMarshaling(double p1, double[] p2, Ice.Current current) + { + double d = 1278312346.0 / 13.0; + test(p1 == d); + for(int i = 0; i < p2.length; ++i) + { + test(p2[i] == d); + } + } + public String[] opStringS(String[] p1, String[] p2, Test.StringSHolder p3, |