2 public int cachedCode; //first field has to be a primitive
3 public boolean cachedHash;
5 public native int nativehashCode();
7 public int hashCode() {
9 cachedCode=nativehashCode();
15 /* DON'T USE THIS METHOD UNLESS NECESSARY */
16 /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
17 public native int getType();
19 public String toString() {
20 return "Object"+hashCode();
23 public boolean equals(Object o) {