@@ -3552,16 +3552,16 @@ void ClassFileParser::parse_classfile_attributes(const ClassFileStream* const cf
3552
3552
cfs->skip_u1 (attribute_length, CHECK);
3553
3553
}
3554
3554
}
3555
- _annotations = assemble_annotations (runtime_visible_annotations,
3556
- runtime_visible_annotations_length,
3557
- runtime_invisible_annotations,
3558
- runtime_invisible_annotations_length,
3559
- CHECK);
3560
- _type_annotations = assemble_annotations (runtime_visible_type_annotations,
3561
- runtime_visible_type_annotations_length,
3562
- runtime_invisible_type_annotations,
3563
- runtime_invisible_type_annotations_length,
3564
- CHECK);
3555
+ _class_annotations = assemble_annotations (runtime_visible_annotations,
3556
+ runtime_visible_annotations_length,
3557
+ runtime_invisible_annotations,
3558
+ runtime_invisible_annotations_length,
3559
+ CHECK);
3560
+ _class_type_annotations = assemble_annotations (runtime_visible_type_annotations,
3561
+ runtime_visible_type_annotations_length,
3562
+ runtime_invisible_type_annotations,
3563
+ runtime_invisible_type_annotations_length,
3564
+ CHECK);
3565
3565
3566
3566
if (parsed_innerclasses_attribute || parsed_enclosingmethod_attribute) {
3567
3567
const u2 num_of_classes = parse_classfile_inner_classes_attribute (
@@ -3615,17 +3615,17 @@ void ClassFileParser::apply_parsed_class_attributes(InstanceKlass* k) {
3615
3615
// Create the Annotations object that will
3616
3616
// hold the annotations array for the Klass.
3617
3617
void ClassFileParser::create_combined_annotations (TRAPS) {
3618
- if (_annotations == NULL &&
3619
- _type_annotations == NULL &&
3618
+ if (_class_annotations == NULL &&
3619
+ _class_type_annotations == NULL &&
3620
3620
_fields_annotations == NULL &&
3621
3621
_fields_type_annotations == NULL ) {
3622
3622
// Don't create the Annotations object unnecessarily.
3623
3623
return ;
3624
3624
}
3625
3625
3626
3626
Annotations* const annotations = Annotations::allocate (_loader_data, CHECK);
3627
- annotations->set_class_annotations (_annotations );
3628
- annotations->set_class_type_annotations (_type_annotations );
3627
+ annotations->set_class_annotations (_class_annotations );
3628
+ annotations->set_class_type_annotations (_class_type_annotations );
3629
3629
annotations->set_fields_annotations (_fields_annotations);
3630
3630
annotations->set_fields_type_annotations (_fields_type_annotations);
3631
3631
@@ -3635,8 +3635,8 @@ void ClassFileParser::create_combined_annotations(TRAPS) {
3635
3635
3636
3636
// The annotations arrays below has been transfered the
3637
3637
// _combined_annotations so these fields can now be cleared.
3638
- _annotations = NULL ;
3639
- _type_annotations = NULL ;
3638
+ _class_annotations = NULL ;
3639
+ _class_type_annotations = NULL ;
3640
3640
_fields_annotations = NULL ;
3641
3641
_fields_type_annotations = NULL ;
3642
3642
}
@@ -5790,8 +5790,8 @@ ClassFileParser::ClassFileParser(ClassFileStream* stream,
5790
5790
_local_interfaces(NULL ),
5791
5791
_transitive_interfaces(NULL ),
5792
5792
_combined_annotations(NULL ),
5793
- _annotations (NULL ),
5794
- _type_annotations (NULL ),
5793
+ _class_annotations (NULL ),
5794
+ _class_type_annotations (NULL ),
5795
5795
_fields_annotations(NULL ),
5796
5796
_fields_type_annotations(NULL ),
5797
5797
_klass(NULL ),
@@ -5895,7 +5895,7 @@ void ClassFileParser::clear_class_metadata() {
5895
5895
_nest_members = NULL ;
5896
5896
_local_interfaces = NULL ;
5897
5897
_combined_annotations = NULL ;
5898
- _annotations = _type_annotations = NULL ;
5898
+ _class_annotations = _class_type_annotations = NULL ;
5899
5899
_fields_annotations = _fields_type_annotations = NULL ;
5900
5900
}
5901
5901
@@ -5937,15 +5937,15 @@ ClassFileParser::~ClassFileParser() {
5937
5937
5938
5938
// If the _combined_annotations pointer is non-NULL,
5939
5939
// then the other annotations fields should have been cleared.
5940
- assert (_annotations == NULL , " Should have been cleared" );
5941
- assert (_type_annotations == NULL , " Should have been cleared" );
5940
+ assert (_class_annotations == NULL , " Should have been cleared" );
5941
+ assert (_class_type_annotations == NULL , " Should have been cleared" );
5942
5942
assert (_fields_annotations == NULL , " Should have been cleared" );
5943
5943
assert (_fields_type_annotations == NULL , " Should have been cleared" );
5944
5944
} else {
5945
5945
// If the annotations arrays were not installed into the Annotations object,
5946
5946
// then they have to be deallocated explicitly.
5947
- MetadataFactory::free_array<u1>(_loader_data, _annotations );
5948
- MetadataFactory::free_array<u1>(_loader_data, _type_annotations );
5947
+ MetadataFactory::free_array<u1>(_loader_data, _class_annotations );
5948
+ MetadataFactory::free_array<u1>(_loader_data, _class_type_annotations );
5949
5949
Annotations::free_contents (_loader_data, _fields_annotations);
5950
5950
Annotations::free_contents (_loader_data, _fields_type_annotations);
5951
5951
}
0 commit comments