Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Regading CONSTANT_InvokeDynamic_info (Java)

Featured Replies

Regading CONSTANT_InvokeDynamic_info (Java)

https://www.clear.rice.edu/comp222/assignments/linking/linking.pdf

CONSTANT_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 above
structures, the actual meaning of some of these structures’ data members can remain opaque to
you throughout the assignment. For instance, in the case of CONSTANT InvokeDynamic, the
bootstrap method attr info is an index into the attributes table of the JCF. However, since you
are not required to do any special processing of JCF attributes in your program, you may ignore what this
actually 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/831592

Each 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?

  • Author

BootStrapMethodAttrIndex is 0 in all the classes I have.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.