Also the Preload attribute has the following format:
Preload_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_classes;
u2 classes[number_of_classes];
}
The LoadableDescriptors attribute has the following format:
LoadableDescriptors_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_descriptors;
u2 descriptors[number_of_descriptors];
}
Each entry in the descriptors array must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info structure representing a valid field descriptor.
Instead of CONSTANT_Class_info used in Preload, LoadableDescriptors uses field descriptor.
See the latest spec;
The Preload attribute (https://github.com/eclipse-openj9/openj9/issues/17233) is now renamed to LoadableDescriptors.
Also the Preload attribute has the following format:
Preload_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_classes; u2 classes[number_of_classes]; } The LoadableDescriptors attribute has the following format:
LoadableDescriptors_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_descriptors; u2 descriptors[number_of_descriptors]; } Each entry in the descriptors array must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info structure representing a valid field descriptor.
Instead of CONSTANT_Class_info used in Preload, LoadableDescriptors uses field descriptor.