Andreas Krall
Christian Thalinger
- $Id: class.c 3999 2005-12-22 14:04:47Z twisti $
+ $Id: class.c 4023 2006-01-01 16:34:53Z twisti $
*/
*******************************************************************************/
methodinfo *class_resolveclassmethod(classinfo *c, utf *name, utf *desc,
- classinfo *referer, bool except)
+ classinfo *referer, bool throwexception)
{
classinfo *cls;
methodinfo *m;
/* XXX check access from REFERER to C */
/* if (c->flags & ACC_INTERFACE) { */
-/* if (except) */
+/* if (throwexception) */
/* *exceptionptr = */
/* new_exception(string_java_lang_IncompatibleClassChangeError); */
/* return NULL; */
goto found;
}
- if (except)
+ if (throwexception)
*exceptionptr = exceptions_new_nosuchmethoderror(c, name, desc);
return NULL;
found:
if ((m->flags & ACC_ABSTRACT) && !(c->flags & ACC_ABSTRACT)) {
- if (except)
+ if (throwexception)
*exceptionptr = new_exception(string_java_lang_AbstractMethodError);
return NULL;
*******************************************************************************/
methodinfo *class_resolveinterfacemethod(classinfo *c, utf *name, utf *desc,
- classinfo *referer, bool except)
+ classinfo *referer, bool throwexception)
{
methodinfo *mi;
/* XXX check access from REFERER to C */
if (!(c->flags & ACC_INTERFACE)) {
- if (except)
+ if (throwexception)
*exceptionptr =
new_exception(string_java_lang_IncompatibleClassChangeError);
if (mi)
return mi;
- if (except)
+ if (throwexception)
*exceptionptr =
exceptions_new_nosuchmethoderror(c, name, desc);
*******************************************************************************/
fieldinfo *class_resolvefield(classinfo *c, utf *name, utf *desc,
- classinfo *referer, bool except)
+ classinfo *referer, bool throwexception)
{
fieldinfo *fi;
fi = class_resolvefield_int(c, name, desc);
if (!fi) {
- if (except)
+ if (throwexception)
*exceptionptr =
new_exception_utfmessage(string_java_lang_NoSuchFieldError,
name);
Changes:
- $Id: class.h 3889 2005-12-05 22:09:59Z twisti $
+ $Id: class.h 4023 2006-01-01 16:34:53Z twisti $
*/
s4 class_findfield_index_by_name(classinfo *c, utf *name);
/* search class for a field */
-fieldinfo *class_resolvefield(classinfo *c, utf *name, utf *desc, classinfo *referer, bool except);
+fieldinfo *class_resolvefield(classinfo *c, utf *name, utf *desc, classinfo *referer, bool throwexception);
/* search for a method with a specified name and descriptor */
methodinfo *class_findmethod(classinfo *c, utf *name, utf *desc);
methodinfo *class_resolvemethod(classinfo *c, utf *name, utf *dest);
-methodinfo *class_resolveclassmethod(classinfo *c, utf *name, utf *dest, classinfo *referer, bool except);
-methodinfo *class_resolveinterfacemethod(classinfo *c, utf *name, utf *dest, classinfo *referer, bool except);
+methodinfo *class_resolveclassmethod(classinfo *c, utf *name, utf *dest, classinfo *referer, bool throwexception);
+methodinfo *class_resolveinterfacemethod(classinfo *c, utf *name, utf *dest, classinfo *referer, bool throwexception);
/* search for a method with specified name and arguments (returntype ignored) */
methodinfo *class_findmethod_approx(classinfo *c, utf *name, utf *desc);