This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: Include filename with exception message on Runtime.load()/loadLibrary() failure
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: Include filename with exception message on Runtime.load()/loadLibrary() failure
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Tue, 15 Feb 2000 19:57:25 +1300
* 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);