commit-classpath
[Top][All Lists]
Advanced

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

Re: classpath ./ChangeLog java/lang/Integer.java na...


From: Brian Jones
Subject: Re: classpath ./ChangeLog java/lang/Integer.java na...
Date: 16 Nov 2001 07:36:03 -0500
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

Tom Tromey <address@hidden> writes:

> >>>>> "Brian" == Brian Jones <address@hidden> writes:
> 
> Brian>        * native/jni/java-lang/java_lang_Double.c (parseDouble): Throw
> Brian>        NullPointerException if the String argument is null.
> 
> Thanks.  I wrote a patch for this today too, but it got delayed since
> I didn't know whether you can compare `str == NULL' or if you must use
> `IsSameObject(str,NULL)'.  The JNI docs are silent on this issue :-(.

This didn't cross my mind, but you should know that in many cases the
JNI functions return NULL as the value of an object, be it jobject or
jstring, so in practice it seems that the comparison can be made
directly.  Also, I think all of those things are referred to in the
documentation as references implying to me at least that they could be
NULL.

Brian
-- 
Brian Jones <address@hidden>



reply via email to

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