2 public int cachedCode; //first field has to be a primitive
3 public boolean cachedHash;
4 public native int nativehashCode();
6 private Object objlocation;
8 public int hashCode() {
10 cachedCode=nativehashCode();
16 /* DON'T USE THIS METHOD UNLESS NECESSARY */
17 /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
18 public native int getType();
20 public String toString() {
21 return "Object"+hashCode();
24 public boolean equals(Object o) {