1.1 --- a/emul/src/main/java/java/lang/Object.java Sat Jan 12 15:39:33 2013 +0100
1.2 +++ b/emul/src/main/java/java/lang/Object.java Mon Jan 14 11:30:56 2013 +0100
1.3 @@ -66,7 +66,7 @@
1.4 * @see Class Literals, section 15.8.2 of
1.5 * <cite>The Java™ Language Specification</cite>.
1.6 */
1.7 - @JavaScriptBody(args="self", body="return self.constructor.$class;")
1.8 + @JavaScriptBody(args={}, body="return this.constructor.$class;")
1.9 public final native Class<?> getClass();
1.10
1.11 /**
1.12 @@ -104,14 +104,14 @@
1.13 * @see java.lang.Object#equals(java.lang.Object)
1.14 * @see java.lang.System#identityHashCode
1.15 */
1.16 - @JavaScriptBody(args = "self", body =
1.17 - "if (self.$hashCode) return self.$hashCode;\n"
1.18 - + "var h = self.computeHashCode__I(self);\n"
1.19 - + "return self.$hashCode = h & h;"
1.20 + @JavaScriptBody(args = {}, body =
1.21 + "if (this.$hashCode) return this.$hashCode;\n"
1.22 + + "var h = this.computeHashCode__I();\n"
1.23 + + "return this.$hashCode = h & h;"
1.24 )
1.25 public native int hashCode();
1.26
1.27 - @JavaScriptBody(args = "self", body = "Math.random() * Math.pow(2, 32);")
1.28 + @JavaScriptBody(args = {}, body = "Math.random() * Math.pow(2, 32);")
1.29 native int computeHashCode();
1.30
1.31 /**