From 9edd0f5e69ca58b69405b4422907c07abdcc5a7e Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Thu, 8 Dec 2005 14:19:13 +0000 Subject: Object.h (throwNoSuchMethodError): New method. 2005-12-08 Andrew Haley * java/lang/Object.h (throwNoSuchMethodError): New method. * java/lang/Object.java (throwNoSuchMethodError): New method. * include/jvm.h (_Jv_ThrowNoSuchFieldError): Declare. * link.cc (_Jv_ThrowNoSuchFieldError): New. (link_symbol_table): Don't throw a NoSuchFieldError if a field is missing. Instead, set the otable entry to zero. (link_symbol_table): If we don't find a nonstatic method, insert the vtable offset of Object.throwNoSuchMethodError() into the otable. From-SVN: r108231 --- libjava/include/jvm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libjava/include') diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 8d34059..85caa40 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -442,6 +442,10 @@ extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index) __attribute__((noreturn)); extern "C" void _Jv_ThrowNullPointerException (void) __attribute__((noreturn)); +extern "C" void _Jv_ThrowNoSuchMethodError (void) + __attribute__((noreturn)); +extern "C" void _Jv_ThrowNoSuchFieldError (int) + __attribute__((noreturn)); extern "C" jobject _Jv_NewArray (jint type, jint size) __attribute__((__malloc__)); extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...) -- cgit v1.1