commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: classpath ./ChangeLog java/lang/Double.java


From: Brian Jones
Subject: Re: classpath ./ChangeLog java/lang/Double.java
Date: 15 Nov 2001 15:22:01 -0500
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

Tom Tromey <address@hidden> writes:

> The docs are generally pretty bad about mentioning
> NullPointerException.  You can't really trust them on this issue.
> 
> Another fix in this particular case would be to have parseDouble()
> throw NullPointerException if the String is null.  The libgcj
> implementation will already do this.
> 
> A simple test (appended) shows that JDK 1.2 at least throws
> NullPointerException from parseDouble.

Perhaps we should just make the native code more robust then and throw
the NullPointerException there.  I'm in agreement that the
documentation on the runtime exceptions is not great.

Brian
-- 
Brian Jones <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]