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: Include filename with exception message on Runtime.load()/loadLibrary() failure


        * java/lang/natRuntime.cc (_load): Include library path with
        exception message.

  [ bryce ]

Index: libjava/java/lang/natRuntime.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/natRuntime.cc,v
retrieving revision 1.8
diff -u -r1.8 natRuntime.cc
--- natRuntime.cc	2000/02/10 00:17:10	1.8
+++ natRuntime.cc	2000/02/15 06:33:07
@@ -116,7 +116,9 @@
   if (h == NULL)
     {
       const char *msg = lt_dlerror ();
-      _Jv_Throw (new UnsatisfiedLinkError (JvNewStringLatin1 (msg)));
+      jstring str = path->concat (JvNewStringLatin1 (": "));
+      str = str->concat (JvNewStringLatin1 (msg));
+      _Jv_Throw (new UnsatisfiedLinkError (str));
     }
 
   add_library (h);

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