1.1 --- a/src/share/vm/runtime/reflection.cpp Wed Dec 19 10:35:08 2012 -0800 1.2 +++ b/src/share/vm/runtime/reflection.cpp Thu Dec 20 10:22:19 2012 +0100 1.3 @@ -771,6 +771,10 @@ 1.4 typeArrayOop an_oop = Annotations::make_java_array(method->annotation_default(), CHECK_NULL); 1.5 java_lang_reflect_Method::set_annotation_default(mh(), an_oop); 1.6 } 1.7 + if (java_lang_reflect_Method::has_type_annotations_field()) { 1.8 + typeArrayOop an_oop = Annotations::make_java_array(method->type_annotations(), CHECK_NULL); 1.9 + java_lang_reflect_Method::set_type_annotations(mh(), an_oop); 1.10 + } 1.11 return mh(); 1.12 } 1.13 1.14 @@ -849,6 +853,10 @@ 1.15 typeArrayOop an_oop = Annotations::make_java_array(fd->annotations(), CHECK_NULL); 1.16 java_lang_reflect_Field::set_annotations(rh(), an_oop); 1.17 } 1.18 + if (java_lang_reflect_Field::has_type_annotations_field()) { 1.19 + typeArrayOop an_oop = Annotations::make_java_array(fd->type_annotations(), CHECK_NULL); 1.20 + java_lang_reflect_Field::set_type_annotations(rh(), an_oop); 1.21 + } 1.22 return rh(); 1.23 } 1.24