This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: jni.cc -vs- the interpreter
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: jni.cc -vs- the interpreter
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 25 Feb 2000 16:48:57 -0700
- Reply-To: tromey at cygnus dot com
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