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 bug fix


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);
 }

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