JNI bug?

Tom Tromey tromey@redhat.com
Tue Jan 30 21:58:00 GMT 2007


>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

David> for (int i = 0; i < arg_types->length; ++i)
David> {
David> values[i].j = 0; // Clean garbage out of the union so that buggy
David> JNI code looking for jint where it should be looking for jboolean
David> will work.
Marco> What do others think? If the solution is that small, I'd be willing to
Marco> do it and I would vote for doing it since there are libraries out
Marco> there which need this.
Do it with a memset, and if it works, I will check it in.
Marco> Anyway, is the code really broken? Isn't the device of Java to always
Marco> initialize everything to 0?
JNI is C, and is underspecified to boot.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /