This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch Ping: Double.parseDouble cannot handle NaN, Infinity or-Infinity
- From: Andrew Haley <aph at redhat dot com>
- To: Mark Anderson <mark at panonet dot net>
- Cc: mckinlay at redhat dot com, java-patches at gcc dot gnu dot org
- Date: Thu, 17 Mar 2005 15:13:41 +0000
- Subject: Re: Patch Ping: Double.parseDouble cannot handle NaN, Infinity or-Infinity
- References: <200503171459.54699.mark@panonet.net>
Mark Anderson writes:
> I am working on the suggestions you made but have a question about CNI.
>
> I have added the string fields to Double.java eg.
>
> private static final String nanString = "NaN";
>
> In the CNI header this field is represented as follows:
>
> private:
> static ::java::lang::String *nanString;
>
> My question is how do I access the value of nanString from CNI? I had thought
> I could just do str->equals(nanString) for my comparisons
That should work. What problems are you seeing?
Andrew.