codegen: handle exceptions of a method
[mate.git] / tests / Interface1.java
1 package tests;
2
3 public class Interface1 implements Inf1_I1_local {
4         public int x;
5
6         public Interface1() {
7                 this.x = 0x1337;
8         }
9
10         public int func1(int a) {
11                 this.x = a;
12                 return this.x;
13         }
14
15         public static void main(String []args) {
16                 Interface1 o1 = new Interface1();
17                 System.out.printf("o1.x: 0x%08x\n", o1.x);
18                 Inf1_I1_local i1 = o1;
19                 System.out.printf("o1.func1(0x11): 0x%08x\n", i1.func1(0x11));
20         }
21 }
22
23 interface Inf1_I1_local {
24         int func1(int a);
25 }