Patch: jni.cc -vs- the interpreter
Tom Tromey
tromey@cygnus.com
Fri Feb 25 15:44:00 GMT 2000
This fixes a bug in jni.cc which caused it not to compile if the
interpreter was disabled.
2000-02-25 Tom Tromey <tromey@cygnus.com>
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'.
Tom
Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.21
diff -u -r1.21 jni.cc
--- jni.cc 2000/02/18 21:22:05 1.21
+++ jni.cc 2000/02/25 23:43:11
@@ -1263,6 +1263,7 @@
const JNINativeMethod *methods,
jint nMethods)
{
+#ifdef INTERPRETER
// For now, this only matters for interpreted methods. FIXME.
if (! _Jv_IsInterpretedClass (k))
{
@@ -1307,6 +1308,9 @@
}
return JNI_OK;
+#else /* INTERPRETER */
+ return JNI_ERR;
+#endif /* INTERPRETER */
}
static jint
More information about the Java-patches
mailing list