summaryrefslogtreecommitdiff
path: root/java/test/Ice/protobuf/MyClassI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/protobuf/MyClassI.java')
-rw-r--r--java/test/Ice/protobuf/MyClassI.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/java/test/Ice/protobuf/MyClassI.java b/java/test/Ice/protobuf/MyClassI.java
new file mode 100644
index 00000000000..29e637d532b
--- /dev/null
+++ b/java/test/Ice/protobuf/MyClassI.java
@@ -0,0 +1,37 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+public final class MyClassI extends Test.MyClass
+{
+ private static void
+ test(boolean b)
+ {
+ if(!b)
+ {
+ throw new RuntimeException();
+ }
+ }
+
+ public void
+ shutdown(Ice.Current current)
+ {
+ current.adapter.getCommunicator().shutdown();
+ }
+
+ public test.TestPB.Message opMessage(test.TestPB.Message i, Ice.Holder<test.TestPB.Message> o, Ice.Current current)
+ {
+ o.value = i;
+ return i;
+ }
+
+ public void opMessageAMD_async(Test.AMD_MyClass_opMessageAMD amdCB, test.TestPB.Message i, Ice.Current current)
+ {
+ amdCB.ice_response(i, i);
+ }
+}