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: Mark Anderson <mark at panonet dot net>
- To: mckinlay at redhat dot com
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 17 Mar 2005 14:59:54 +0000
- Subject: Re: Patch Ping: Double.parseDouble cannot handle NaN, Infinity or-Infinity
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 but I see that the
CNI header does not contain the actual value of the constant so the
comparison fails.
--
Regards,
Mark