mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 21:07:33 +08:00
jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not AbstractMethodError.
* jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not AbstractMethodError. From-SVN: r50337
This commit is contained in:
parent
3020a4b265
commit
6901a00903
@ -1,3 +1,8 @@
|
||||
2002-03-05 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
|
||||
AbstractMethodError.
|
||||
|
||||
2002-03-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* Makefile.am: Use -bootclasspath, not -CLASSPATH.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user