codegen: handle exceptions of a method
[mate.git] / tests / Exception2.java
diff --git a/tests/Exception2.java b/tests/Exception2.java
new file mode 100644 (file)
index 0000000..ae4bc86
--- /dev/null
@@ -0,0 +1,11 @@
+package tests;
+
+public class Exception2 {
+       public static void main(String []args) {
+               try {
+                       throw new NullPointerException();
+               } catch (NullPointerException _) {
+                       System.out.printf("NullPointerException\n");
+               }
+       }
+}