- classinfo *c = f->class;
- int slot = f - c->fields;
-
- if (c->field_annotations != NULL &&
- c->field_annotations->size > slot) {
- return c->field_annotations->data[slot];
+#if defined(ENABLE_ANNOTATIONS)
+ classinfo *c;
+ int slot;
+ java_handle_bytearray_t *annotations;
+ java_handle_t *a;
+
+ c = f->class;
+ slot = f - c->fields;
+ annotations = NULL;
+ a = (java_handle_t*)c->field_annotations;
+
+ if (c->field_annotations != NULL && array_length_get(a) > slot) {
+ annotations = (java_handle_bytearray_t*)
+ array_objectarray_element_get(
+ c->field_annotations, slot);