This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Patch: FYI: loadLibrary fix


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


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