bug fixes
[IRC.git] / Robust / src / ClassLibrary / ObjectJava.java
index 82b1ef68cc4894891c86049a89b6b627d5c7aa23..59a62f4ac10bbf25c252937dfb2c21decdf6c6b9 100644 (file)
@@ -1,5 +1,5 @@
 public class Object {
-    public int cachedCode;
+    public int cachedCode; //first field has to be a primitive
     public boolean cachedHash;
 
     public native int nativehashCode();
@@ -22,7 +22,7 @@ public class Object {
     public native int MonitorExit();
 
     public String toString() {
-       return String.valueOf(this);
+       return "Object"+hashCode();
     }
 
     public boolean equals(Object o) {