diff options
Diffstat (limited to 'src/test/test1/Howard.java')
-rw-r--r-- | src/test/test1/Howard.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/test1/Howard.java b/src/test/test1/Howard.java new file mode 100644 index 00000000..53bbae8c --- /dev/null +++ b/src/test/test1/Howard.java @@ -0,0 +1,29 @@ +package test1;
+
+import java.io.IOException;
+
+class Howard4 implements HowardHome {
+ int n = 0;
+ public Object create() throws IOException {
+ if (n == 1)
+ throw new IOException();
+ else
+ return "howard4";
+ }
+}
+
+interface HowardHome {
+ Object create() throws IOException;
+}
+
+class Howard2 {
+ Object lookup(String n) { return new Howard4(); }
+}
+
+public class Howard extends Howard2 {
+ private Object _remote;
+
+ public int run() {
+ return 0;
+ }
+}
|