X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fnative%2Fvm%2Fgnu%2Fjava_lang_reflect_Field.c;h=7e1bbf82fa1534599dab0c365ac0971fda4bf177;hb=91fc25d196327ad44830be3ab51231e9f358a6ac;hp=8da63369147cc02efa5ad231e5d6a7d2edd8b5bc;hpb=9c7e99e743bfd28722a78ba3014af4a2e5c33c3c;p=cacao.git diff --git a/src/native/vm/gnu/java_lang_reflect_Field.c b/src/native/vm/gnu/java_lang_reflect_Field.c index 8da633691..7e1bbf82f 100644 --- a/src/native/vm/gnu/java_lang_reflect_Field.c +++ b/src/native/vm/gnu/java_lang_reflect_Field.c @@ -49,6 +49,7 @@ #include "native/include/java_lang_reflect_Field.h" #if defined(ENABLE_ANNOTATIONS) +#include "native/include/java_util_Map.h" #include "native/include/sun_reflect_ConstantPool.h" #include "native/vm/reflect.h" #endif @@ -1251,7 +1252,7 @@ JNIEXPORT java_lang_String* JNICALL Java_java_lang_reflect_Field_getSignature(JN */ JNIEXPORT struct java_util_Map* JNICALL Java_java_lang_reflect_Field_declaredAnnotations(JNIEnv *env, java_lang_reflect_Field *this) { - struct java_util_Map *declaredAnnotations = NULL; + java_util_Map *declaredAnnotations = NULL; java_handle_bytearray_t *annotations = NULL; java_lang_Class *declaringClass = NULL; classinfo *referer = NULL; @@ -1259,7 +1260,7 @@ JNIEXPORT struct java_util_Map* JNICALL Java_java_lang_reflect_Field_declaredAnn LLNI_field_get_ref(this, declaredAnnotations, declaredAnnotations); if (declaredAnnotations == NULL) { - LLNI_field_get_val(this, annotations, annotations); + LLNI_field_get_ref(this, annotations, annotations); LLNI_field_get_ref(this, clazz, declaringClass); LLNI_class_get(this, referer);