This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: JNI bug fix
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: JNI bug fix
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 16 Feb 2000 11:39:11 -0700
- Reply-To: tromey at cygnus dot com
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);
}