This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JNI without Jni_Lookup() ?
>>>>> "Erik" == Erik Poupaert <erik.poupaert@skynet.be> writes:
>> It would be pretty helpful if we had a tool that could check this sort
>> of thing at build time.
Erik> The linker does that automatically, but only if you ...
Erik> link statically.
Yeah, but this won't work for JNI. One of the problems with JNI is
that every method has two possible manglings. You can't know until
runtime which is the one to use (unless you design some way to tell
gcj about it ahead of time). So, add that to the other reasons that
this approach won't really work...
Tom