This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: JNI fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 05 Mar 2002 16:04:30 -0700
- Subject: Patch: FYI: JNI fixlet
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk and branch.
This fixes a minor spec divergence.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
AbstractMethodError.
Index: jni.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni.cc,v
retrieving revision 1.60
diff -u -r1.60 jni.cc
--- jni.cc 2002/02/13 17:34:52 1.60
+++ jni.cc 2002/03/05 22:33:53
@@ -26,7 +26,7 @@
#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 @@
if (function == NULL)
{
jstring str = JvNewStringUTF (name->data);
- throw new java::lang::AbstractMethodError (str);
+ throw new java::lang::UnsatisfiedLinkError (str);
}
}