Changes to MGC class library and some missing unit test files for inner class
[IRC.git] / Robust / src / ClassLibrary / MGC / Object.java
1 public class Object {
2   // temporary extra unused int filed to align objects for Java
3   //int wkhqwemnbmwnb;
4
5   public native int hashCode();
6
7   /* DON'T USE THIS METHOD UNLESS NECESSARY */
8   /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
9   public native int getType();
10
11   public native void MonitorEnter();
12   public native void MonitorExit();
13
14   public String toString() {
15     return "Object"+hashCode();
16   }
17
18   public boolean equals(Object o) {
19     if (o==this)
20       return true;
21     return false;
22   }
23   
24   public final native void notify();
25   public final native void notifyAll();
26   public final native void wait();
27 }