This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Does -fjni work with recent builds?
>>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:
Alex> Tom, since `meth' (held by `meth_var') in build_jni_stub is a
Alex> global symbol, shouldn't it be created only once?
Nope. We need a different such symbol for each native method. `meth'
is a per-stub cache of the underlying JNI method.
I don't understand why this doesn't work. `meth' should be local to
the stub (but static). That is why TREE_STATIC is 1 but TREE_PUBLIC
and DECL_EXTERNAL are 0. I must be missing something.
Tom