codegen: handle exceptions of a method
[mate.git] / tests / Generics1.java
1 package tests;
2
3 public class Generics1 implements Cmp<Integer> {
4         public Integer a = new Integer(0x1337);
5         public int cmpto(Integer o) {
6                 return a.intValue() - o.intValue();
7         }
8
9         public static Cmp<Integer> sb = new Generics1();
10         public static int lalelu = 0;
11
12         public static void main(String []args) {
13                 Generics1 foo = new Generics1();
14                 for (int i = 0; i < 0x10; i++) {
15                         System.out.printf("0x%08x\n", foo.cmpto(0x666));
16                         System.out.printf("0x%08x\n", sb.cmpto(0x666));
17                 }
18         }
19 }
20
21 interface Cmp<T>
22 {
23         int cmpto(T o);
24 }