This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: jni.cc -vs- the interpreter


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]