SUGGESTED FIX
# http://hg.openjdk.java.net/jdk7/tl/jdk/rev/2a1b1075f583
# HG changeset patch
# User darcy
# Date 1247694193 25200
# Node ID 2a1b1075f583e0bd454e03a32c8bb18218fcdbd6
# Parent aaf0cb20646e4519dc7ca10e869f37b91d353f1c
6463998: Undocumented NullPointerExeption from Float.parseFloat and Double.parseDouble
Reviewed-by: lancea, iris
--- a/src/share/classes/java/lang/Double.java Wed Jul 15 12:08:55 2009 -0700
+++ b/src/share/classes/java/lang/Double.java Wed Jul 15 14:43:13 2009 -0700
@@ -529,6 +529,7 @@ public final class Double extends Number
* @param s the string to be parsed.
* @return the {@code double} value represented by the string
* argument.
+ * @throws NullPointerException if the string is null
* @throws NumberFormatException if the string does not contain
* a parsable {@code double}.
* @see java.lang.Double#valueOf(String)
--- a/src/share/classes/java/lang/Float.java Wed Jul 15 12:08:55 2009 -0700
+++ b/src/share/classes/java/lang/Float.java Wed Jul 15 14:43:13 2009 -0700
@@ -438,12 +438,13 @@ public final class Float extends Number
* represented by the specified {@code String}, as performed
* by the {@code valueOf} method of class {@code Float}.
*
- * @param s the string to be parsed.
+ * @param s the string to be parsed.
* @return the {@code float} value represented by the string
* argument.
- * @throws NumberFormatException if the string does not contain a
+ * @throws NullPointerException if the string is null
+ * @throws NumberFormatException if the string does not contain a
|