Patch: JNI bug fix

Tom Tromey tromey@cygnus.com
Wed Feb 16 10:37:00 GMT 2000


I'm committing this patch, which fixes a bug in the JNI FindClass
function.

2000-02-16  Tom Tromey  <tromey@cygnus.com>

	* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
	findClass.

Tom

Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.17
diff -u -r1.17 jni.cc
--- jni.cc	2000/02/16 00:07:33	1.17
+++ jni.cc	2000/02/16 18:35:33
@@ -337,7 +337,7 @@
     loader = env->klass->getClassLoader ();
 
   // FIXME: exception processing.
-  jclass r = loader->findClass (n);
+  jclass r = loader->loadClass (n);
 
   return (jclass) wrap_value (env, r);
 }


More information about the Java-patches mailing list