This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]