codegen: handle exceptions of a method
[mate.git] / tests / Instance2.java
index 6f25480569516fbbaf8e4f5a3aaaddd59f811f16..b336aefcfdeff3e84f74af121b1fa631fd23aedd 100644 (file)
@@ -19,5 +19,14 @@ public class Instance2 extends Instance1 {
                b.x = 0x22; sum += b.x; // 0x22
                b.y = 0x33; sum += b.y; // 0x33
                Instance1.id(sum); // 0x198
+               System.out.printf("0x%08x\n", b.getX()); // 0x22
+       }
+
+       public int getX() {
+               return this.x;
+       }
+
+       public void setX(int a) {
+               this.x = a;
        }
 }