java/lang: env for exceptions
authorBernhard Urban <lewurm@gmail.com>
Sun, 9 Sep 2012 15:07:58 +0000 (17:07 +0200)
committerBernhard Urban <lewurm@gmail.com>
Sun, 9 Sep 2012 16:00:07 +0000 (18:00 +0200)
Makefile
java/lang/Exception.java [new file with mode: 0644]
java/lang/NullPointerException.java [new file with mode: 0644]
java/lang/RuntimeException.java [new file with mode: 0644]
java/lang/Throwable.java [new file with mode: 0644]

index 1b02428d44ffdf65a9537c2aa5eb552d27fe92f9..268c1c0c8729e5547826116f9e925c597cc77e99 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,8 +74,7 @@ mate.static: Mate.hs ffi/trap.c $(HS_FILES) $(HS_BOOT) ffi/native.o $(CLASS_FILE
 clean:
        rm -rf $(BUILD) mate mate.static ffi/native.o \
                tests/*.class Mate/*_stub.* \
-               jmate/lang/*.class jmate/io/*.class java/io/*.class \
-               java/lang/{Integer,Character,String,System}.class \
+               $(CLASS_FILES) \
                scratch/*.class
 
 ghci: mate.static
diff --git a/java/lang/Exception.java b/java/lang/Exception.java
new file mode 100644 (file)
index 0000000..6e3cf32
--- /dev/null
@@ -0,0 +1,4 @@
+package java.lang;
+
+public class Exception extends Throwable {
+}
diff --git a/java/lang/NullPointerException.java b/java/lang/NullPointerException.java
new file mode 100644 (file)
index 0000000..9922a45
--- /dev/null
@@ -0,0 +1,4 @@
+package java.lang;
+
+public class NullPointerException extends RuntimeException {
+}
diff --git a/java/lang/RuntimeException.java b/java/lang/RuntimeException.java
new file mode 100644 (file)
index 0000000..3be7f77
--- /dev/null
@@ -0,0 +1,4 @@
+package java.lang;
+
+public class RuntimeException extends Exception {
+}
diff --git a/java/lang/Throwable.java b/java/lang/Throwable.java
new file mode 100644 (file)
index 0000000..031917c
--- /dev/null
@@ -0,0 +1,4 @@
+package java.lang;
+
+public class Throwable {
+}