mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8014709: Constructor.getAnnotatedReturnType() returns empty AnnotatedType
Reviewed-by: stefank, rbackman
This commit is contained in:
parent
a246da16d1
commit
6d51346158
2 changed files with 26 additions and 1 deletions
|
@ -817,6 +817,10 @@ oop Reflection::new_constructor(methodHandle method, TRAPS) {
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue