diff -r 50da9ad3365a -r 62b289bb87c7 rt/emul/mini/src/main/java/java/lang/Double.java --- a/rt/emul/mini/src/main/java/java/lang/Double.java Sun May 17 13:11:31 2015 +0200 +++ b/rt/emul/mini/src/main/java/java/lang/Double.java Tue Jul 07 07:46:52 2015 +0200 @@ -538,10 +538,15 @@ * @see java.lang.Double#valueOf(String) * @since 1.2 */ + public static double parseDouble(String s) throws NumberFormatException { + double ret = parseDouble0(s); + if (isNaN(ret)) { + throw new NumberFormatException("For input string: \"" + s + '\"'); + } + return ret; + } @JavaScriptBody(args="s", body="return parseFloat(s);") - public static double parseDouble(String s) throws NumberFormatException { - return 0; - } + private static native double parseDouble0(String s) throws NumberFormatException; /** * Returns {@code true} if the specified number is a