Patch for my first running JNI invocation program

Tom Tromey tromey@redhat.com
Thu Aug 2 14:55:00 GMT 2001


>>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:

Martin> 2001-07-19  Martin Kahlert  <martin.kahlert@infineon.com>
Martin> 	*  jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
Martin> 	to initialize global_ref_table/local_ref_table.

I'm fairly suprised that this works.  I would have thought much more
initialization is required.  It looks like the invocation API code
isn't really complete.  The JNI code doesn't call the CNI code at all.
Also, argument processing is never really done.  I guess all this
stuff still needs a rewrite.

Anyway, your patch doesn't make these problems worse.  I'm going to
check it in.  However, be warned that non-trivial uses of the
invocation API will probably still fail.

Tom



More information about the Java-patches mailing list