Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2220963 | 8 | Stefan Karlsson | P4 | Resolved | Fixed | b25 |
JDK-2220869 | 7u4 | Stefan Karlsson | P4 | Closed | Fixed | b11 |
The following methods all set _methods_annotations:
void set_method_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
void set_method_parameter_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
void set_method_default_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
the last two setters should use the annotations matching the setter name.
The corresponding getters:
typeArrayOop get_method_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_annotations); }
typeArrayOop get_method_parameter_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_parameter_annotations); }
typeArrayMDOop get_method_default_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_default_annotations); }
The setters are only used by jvmtiRedefineClasses.cpp.
void set_method_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
void set_method_parameter_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
void set_method_default_annotations_of(int idnum, typeArrayOop anno)
{ set_methods_annotations_of(idnum, anno, &_methods_annotations); }
the last two setters should use the annotations matching the setter name.
The corresponding getters:
typeArrayOop get_method_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_annotations); }
typeArrayOop get_method_parameter_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_parameter_annotations); }
typeArrayMDOop get_method_default_annotations_of(int idnum)
{ return get_method_annotations_from(idnum, _methods_default_annotations); }
The setters are only used by jvmtiRedefineClasses.cpp.
- backported by
-
JDK-2220963 Method annotations are incorrectly set when redefining classes
-
- Resolved
-
-
JDK-2220869 Method annotations are incorrectly set when redefining classes
-
- Closed
-
- relates to
-
JDK-7140852 Add test for 7022100
-
- Resolved
-