diff options
author | Mark Wielaard <mark@klomp.org> | 2003-07-25 13:04:15 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2003-07-25 13:04:15 +0000 |
commit | 337ecadfd0c7e1f30ec3a9ff4bcd693e2fc62cdb (patch) | |
tree | 941a87849a47b070914ba236eff3b1a1e26f3936 | |
parent | ec8a1dd5a8fca1b4c134522a337e2f66e1de686b (diff) | |
download | gcc-337ecadfd0c7e1f30ec3a9ff4bcd693e2fc62cdb.zip gcc-337ecadfd0c7e1f30ec3a9ff4bcd693e2fc62cdb.tar.gz gcc-337ecadfd0c7e1f30ec3a9ff4bcd693e2fc62cdb.tar.bz2 |
+ * java/lang/natRuntime.cc (_load): Add library name to
+ UnsatisfiedLinkError when thrown.
From-SVN: r69786
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/lang/natRuntime.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 2e34c9a..5b447ee 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,10 @@ 2003-07-25 Mark Wielaard <mark@klomp.org> + * java/lang/natRuntime.cc (_load): Add library name to + UnsatisfiedLinkError when thrown. + +2003-07-25 Mark Wielaard <mark@klomp.org> + * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java added. * Makefile.in: Likewise. diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index 69f78f6..878fccb 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -217,7 +217,8 @@ java::lang::Runtime::_load (jstring path, jboolean do_search) 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); } |