another file
authorbdemsky <bdemsky>
Tue, 20 Feb 2007 08:52:29 +0000 (08:52 +0000)
committerbdemsky <bdemsky>
Tue, 20 Feb 2007 08:52:29 +0000 (08:52 +0000)
Robust/src/ClassLibrary/ObjectJava.java [new file with mode: 0644]
Robust/src/ClassLibrary/Thread.java [new file with mode: 0644]

diff --git a/Robust/src/ClassLibrary/ObjectJava.java b/Robust/src/ClassLibrary/ObjectJava.java
new file mode 100644 (file)
index 0000000..89d8686
--- /dev/null
@@ -0,0 +1,20 @@
+public class Object {
+    public native int hashCode();
+
+    /* DON'T USE THIS METHOD UNLESS NECESSARY */
+    /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
+    public native int getType();
+
+    public native int MonitorEnter();
+    public native int MonitorExit();
+
+    public String toString() {
+       return String.valueOf(this);
+    }
+
+    public boolean equals(Object o) {
+       if (o==this)
+           return true;
+       return false;
+    }
+}
diff --git a/Robust/src/ClassLibrary/Thread.java b/Robust/src/ClassLibrary/Thread.java
new file mode 100644 (file)
index 0000000..b9f2a82
--- /dev/null
@@ -0,0 +1,13 @@
+public class Thread {
+    public void start() {
+       nativeCreate();
+    }
+
+    private static void staticStart(Thread t) {
+       t.run();
+    }
+    
+    public void run() {}
+
+    private native void nativeCreate();
+}