* java/lang/Integer.java (getInteger): Attempt to decode the value
of the system property instead of the name of the system property.
(parseInt): Throw NumberFormatException explicitly in the case of
a null argument in keeping with JDK 1.3.
From-SVN: r47095
+2001-11-16 Tom Tromey <tromey@redhat.com>
+
+ Re-merge with Classpath, from Brian Jones:
+ * java/lang/Integer.java (getInteger): Attempt to decode the value
+ of the system property instead of the name of the system property.
+ (parseInt): Throw NumberFormatException explicitly in the case of
+ a null argument in keeping with JDK 1.3.
+
2001-11-16 Mark Wielaard <mark@klomp.org>
* java/util/Timer.java (TaskQueue.isStopped): Remove method.
if (val == null) return def;
try
{
- return decode(nm);
+ return decode(val);
}
catch (NumberFormatException e)
{
{
final int len;
+ if (str == null)
+ throw new NumberFormatException ();
+
if ((len = str.length()) == 0 ||
radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
throw new NumberFormatException();