FYI: Clarify which library was loading for UnsatisfiedLinkError
Mark Wielaard
mark@klomp.org
Fri Jul 25 13:03:00 GMT 2003
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);
}
More information about the Java-patches
mailing list