Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: field.c 8315 2007-08-15 22:49:20Z panzi $
+ $Id: field.c 8325 2007-08-16 17:25:47Z twisti $
*/
}
-#if defined(ENABLE_ANNOTATIONS)
/* field_get_annotations ******************************************************
Gets a fields' annotations (or NULL if none).
*******************************************************************************/
-java_bytearray *field_get_annotations(fieldinfo *f)
+java_handle_bytearray_t *field_get_annotations(fieldinfo *f)
{
- classinfo *c = f->class;
- int slot = f - c->fields;
- annotation_bytearray_t *ba = NULL;
- java_bytearray *annotations = NULL;
+#if defined(ENABLE_ANNOTATIONS)
+ classinfo *c;
+ int slot;
+ annotation_bytearray_t *ba;
+ java_handle_bytearray_t *annotations;
+
+ c = f->class;
+ slot = f - c->fields;
+ annotations = NULL;
if (c->field_annotations != NULL && c->field_annotations->size > slot) {
ba = c->field_annotations->data[slot];
}
return annotations;
-}
+#else
+ return NULL;
#endif
+}
/* field_printflags ************************************************************