diff -r d65b3a2fbfaf -r a0505844750a emul/src/main/java/java/lang/Double.java --- a/emul/src/main/java/java/lang/Double.java Sun Sep 30 18:29:37 2012 -0700 +++ b/emul/src/main/java/java/lang/Double.java Tue Oct 16 18:04:11 2012 +0200 @@ -25,6 +25,8 @@ package java.lang; +import org.apidesign.bck2brwsr.core.JavaScriptBody; + /** * The {@code Double} class wraps a value of the primitive type * {@code double} in an object. An object of type @@ -188,6 +190,7 @@ * @param d the {@code double} to be converted. * @return a string representation of the argument. */ + @JavaScriptBody(args="d", body="return d.toString();") public static String toString(double d) { throw new UnsupportedOperationException(); } @@ -497,6 +500,7 @@ * @throws NumberFormatException if the string does not contain a * parsable number. */ + @JavaScriptBody(args="s", body="return parseFloat(s);") public static Double valueOf(String s) throws NumberFormatException { throw new UnsupportedOperationException(); // return new Double(FloatingDecimal.readJavaFormatString(s).doubleValue()); @@ -534,6 +538,7 @@ * @see java.lang.Double#valueOf(String) * @since 1.2 */ + @JavaScriptBody(args="s", body="return parseFloat(s);") public static double parseDouble(String s) throws NumberFormatException { throw new UnsupportedOperationException(); // return FloatingDecimal.readJavaFormatString(s).doubleValue();