This is the mail archive of the java@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: JNI bug?


>>>>> "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


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