*******************************************************************************/
static bool _field_access_check(java_lang_reflect_VMField *_this,
- fieldinfo *f, classinfo *c, java_handle_t *o)
+ fieldinfo *f, java_handle_t *o)
{
java_lang_reflect_Field *rf;
int32_t flag;
if (f->flags & ACC_STATIC) {
/* initialize class if required */
- if (!(c->state & CLASS_INITIALIZED))
- if (!initialize_class(c))
+ if (!(f->clazz->state & CLASS_INITIALIZED))
+ if (!initialize_class(f->clazz))
return false;
/* everything is ok */
return false;
}
- if (builtin_instanceof(o, c))
+ if (builtin_instanceof(o, f->clazz))
return true;
}
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return NULL;
switch (f->parseddesc->decltype) {
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return 0;
/* check the field type and return the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, df, dc, (java_handle_t *) o))
+ if (!_field_access_check(_this, df, (java_handle_t *) o))
return;
/* get the source classinfo from the object */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */
/* check if the field can be accessed */
- if (!_field_access_check(_this, f, c, (java_handle_t *) o))
+ if (!_field_access_check(_this, f, (java_handle_t *) o))
return;
/* check the field type and set the value */