diff src/share/vm/runtime/reflection.cpp @ 10378:a589c78a8811

8014709: Constructor.getAnnotatedReturnType() returns empty AnnotatedType Reviewed-by: stefank, rbackman Contributed-by: Joel Borggren-Franck <joel.franck@oracle.com>
author rbackman
date Fri, 31 May 2013 13:02:24 +0200
parents f9eb431c3efe
children efe8b7d64424
line wrap: on
line diff
--- a/src/share/vm/runtime/reflection.cpp	Thu May 30 11:46:39 2013 -0700
+++ b/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();
 }