Patch: FYI: loadLibrary fix

Tom Tromey tromey@redhat.com
Wed Jul 24 15:40:00 GMT 2002


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



More information about the Java-patches mailing list