15 hours ago15 hr Regading CONSTANT_InvokeDynamic_info (Java)https://www.clear.rice.edu/comp222/assignments/linking/linking.pdfCONSTANT_InvokeDynamic_info {u1 tag;u2 bootstrap_method_attr_info;u2 name_and_type_index;}Although you must necessarily pay attention to the sizes of the various data types in the abovestructures, the actual meaning of some of these structures’ data members can remain opaque toyou throughout the assignment. For instance, in the case of CONSTANT InvokeDynamic, thebootstrap method attr info is an index into the attributes table of the JCF. However, since youare not required to do any special processing of JCF attributes in your program, you may ignore what thisactually refers to.I don't wanna ignore it, I wanna read this and print to string.bootstrap_method_attr_index 又指向类属性中的typedef struct BootstrapMethods_attribute { u16 num_bootstrap_methods; BootstrapMethod *bootstrap_methods; } BootstrapMethodsAttr; typedef struct _BootstrapMethod { u16 bootstrap_method_ref; u16 num_bootstrap_arguments; u16 *bootstrap_arguments; //cache MethodInfo *make; } BootstrapMethod;https://developer.aliyun.com/article/831592Each class has a BootstrapMethodsAttr collection, which stores all BootstrapMethod values. Each BootstrapMethod contains a bootstrap_method_ref and n bootstrap_arguments values. bootstrap_method_ref is a constant pool index pointing to a CONSTANT_MethodHandle_info. Each bootstrap_argument value is also a constant pool index.bootstrap_argument can be any constant? It is the value passed to Method? Right?
Create an account or sign in to comment