Mercurial > hg > graal-compiler
comparison src/share/vm/oops/instanceKlass.hpp @ 4861:26a08cbbf042
7022100: Method annotations are incorrectly set when redefining classes
Summary: Changed to the correct annotation arrays
Reviewed-by: kamg, dholmes, sla
author | stefank |
---|---|
date | Fri, 27 Jan 2012 13:46:24 +0100 |
parents | 8f8b94305aff |
children | b7b8b6d2f97d |
comparison
equal
deleted
inserted
replaced
4860:34e2e90e7182 | 4861:26a08cbbf042 |
---|---|
568 typeArrayOop get_method_default_annotations_of(int idnum) | 568 typeArrayOop get_method_default_annotations_of(int idnum) |
569 { return get_method_annotations_from(idnum, _methods_default_annotations); } | 569 { return get_method_annotations_from(idnum, _methods_default_annotations); } |
570 void set_method_annotations_of(int idnum, typeArrayOop anno) | 570 void set_method_annotations_of(int idnum, typeArrayOop anno) |
571 { set_methods_annotations_of(idnum, anno, &_methods_annotations); } | 571 { set_methods_annotations_of(idnum, anno, &_methods_annotations); } |
572 void set_method_parameter_annotations_of(int idnum, typeArrayOop anno) | 572 void set_method_parameter_annotations_of(int idnum, typeArrayOop anno) |
573 { set_methods_annotations_of(idnum, anno, &_methods_annotations); } | 573 { set_methods_annotations_of(idnum, anno, &_methods_parameter_annotations); } |
574 void set_method_default_annotations_of(int idnum, typeArrayOop anno) | 574 void set_method_default_annotations_of(int idnum, typeArrayOop anno) |
575 { set_methods_annotations_of(idnum, anno, &_methods_annotations); } | 575 { set_methods_annotations_of(idnum, anno, &_methods_default_annotations); } |
576 | 576 |
577 // allocation | 577 // allocation |
578 DEFINE_ALLOCATE_PERMANENT(instanceKlass); | 578 DEFINE_ALLOCATE_PERMANENT(instanceKlass); |
579 instanceOop allocate_instance(TRAPS); | 579 instanceOop allocate_instance(TRAPS); |
580 instanceOop allocate_permanent_instance(TRAPS); | 580 instanceOop allocate_permanent_instance(TRAPS); |