This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Clarify which library was loading for UnsatisfiedLinkError
- From: Mark Wielaard <mark at klomp dot org>
- To: java-patches at gcc dot gnu dot org
- Date: 25 Jul 2003 15:03:19 +0200
- Subject: 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);
}