summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-05 22:36:11 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-05 22:36:11 +0000
commite9c622c716fd1bcb475d45d9dc4ee1da46900b1b (patch)
tree0ce3d86f56d0e3df23f1ebd6fd7593682c9991f7 /libjava/jni.cc
parentb8dd27f3329a3d85aefe7e35800708bd525cdad2 (diff)
downloadgcc-e9c622c716fd1bcb475d45d9dc4ee1da46900b1b.tar.gz
* jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
AbstractMethodError. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index 04622f0b671..1abd2d2497a 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -26,7 +26,7 @@ details. */
#include <java/lang/Throwable.h>
#include <java/lang/ArrayIndexOutOfBoundsException.h>
#include <java/lang/StringIndexOutOfBoundsException.h>
-#include <java/lang/AbstractMethodError.h>
+#include <java/lang/UnsatisfiedLinkError.h>
#include <java/lang/InstantiationException.h>
#include <java/lang/NoSuchFieldError.h>
#include <java/lang/NoSuchMethodError.h>
@@ -2014,7 +2014,7 @@ _Jv_LookupJNIMethod (jclass klass, _Jv_Utf8Const *name,
if (function == NULL)
{
jstring str = JvNewStringUTF (name->data);
- throw new java::lang::AbstractMethodError (str);
+ throw new java::lang::UnsatisfiedLinkError (str);
}
}