2 public int cachedCode; //first field has to be a primitive
3 public boolean cachedHash;
5 public native int nativehashCode();
6 private Object nextlockobject;
7 private Object prevlockobject;
9 // temporary extra unused int filed to align objects for Java
12 public int hashCode() {
14 cachedCode=nativehashCode();
20 /* DON'T USE THIS METHOD UNLESS NECESSARY */
21 /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
22 public native int getType();
24 public native int MonitorEnter();
25 public native int MonitorExit();
27 public String toString() {
28 return "Object"+hashCode();
31 public boolean equals(Object o) {