This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: loadLibrary fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 24 Jul 2002 16:45:13 -0600
- Subject: Patch: FYI: loadLibrary fix
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes some recent regressions in the JNI tests.
I broke loadLibrary during a Classpath merge, and this patch fixes the
problem.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/Runtime.java (loadLibrary): Pass `true' as search
argument to _load.
Index: java/lang/Runtime.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Runtime.java,v
retrieving revision 1.10
diff -u -r1.10 Runtime.java
--- java/lang/Runtime.java 13 May 2002 20:10:35 -0000 1.10
+++ java/lang/Runtime.java 24 Jul 2002 18:18:53 -0000
@@ -652,7 +652,7 @@
SecurityManager sm = securityManager; // Be thread-safe!
if (sm != null)
sm.checkLink(libname);
- _load(libname, false);
+ _load(libname, true);
}
/**