1.1 --- a/rt/emul/mini/src/main/java/java/lang/Double.java Sun May 17 13:11:31 2015 +0200
1.2 +++ b/rt/emul/mini/src/main/java/java/lang/Double.java Tue Jul 07 07:46:52 2015 +0200
1.3 @@ -538,10 +538,15 @@
1.4 * @see java.lang.Double#valueOf(String)
1.5 * @since 1.2
1.6 */
1.7 + public static double parseDouble(String s) throws NumberFormatException {
1.8 + double ret = parseDouble0(s);
1.9 + if (isNaN(ret)) {
1.10 + throw new NumberFormatException("For input string: \"" + s + '\"');
1.11 + }
1.12 + return ret;
1.13 + }
1.14 @JavaScriptBody(args="s", body="return parseFloat(s);")
1.15 - public static double parseDouble(String s) throws NumberFormatException {
1.16 - return 0;
1.17 - }
1.18 + private static native double parseDouble0(String s) throws NumberFormatException;
1.19
1.20 /**
1.21 * Returns {@code true} if the specified number is a