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]

FYI: Clarify which library was loading for UnsatisfiedLinkError


Hi,

This make it clear exactly which library name the runtime was actually
trying to load when it throws a UnsatisfiedLinkError.

2003-07-25  Mark Wielaard  <mark@klomp.org>
  
       * java/lang/natRuntime.cc (_load): Add library name to
       UnsatisfiedLinkError when thrown.

Cheers,

Mark

--- java/lang/natRuntime.cc     25 Apr 2003 16:48:13 -0000      1.37
+++ java/lang/natRuntime.cc     25 Jul 2003 12:57:29 -0000
@@ -217,7 +217,8 @@
   if (h == NULL)
     {
       const char *msg = lt_dlerror ();
-      jstring str = path->concat (JvNewStringLatin1 (": "));
+      jstring str = JvNewStringLatin1 (lib_name);
+      str = str->concat (JvNewStringLatin1 (": "));
       str = str->concat (JvNewStringLatin1 (msg));
       throw new UnsatisfiedLinkError (str);
     }


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