--- a/hotspot/src/share/vm/runtime/reflection.cpp Thu May 30 11:46:39 2013 -0700
+++ b/hotspot/src/share/vm/runtime/reflection.cpp Fri May 31 13:02:24 2013 +0200
@@ -817,6 +817,10 @@
typeArrayOop an_oop = Annotations::make_java_array(method->parameter_annotations(), CHECK_NULL);
java_lang_reflect_Constructor::set_parameter_annotations(ch(), an_oop);
}
+ if (java_lang_reflect_Constructor::has_type_annotations_field()) {
+ typeArrayOop an_oop = Annotations::make_java_array(method->type_annotations(), CHECK_NULL);
+ java_lang_reflect_Constructor::set_type_annotations(ch(), an_oop);
+ }
return ch();
}