The CONSTANT_InvokeDynamic_info structure is used by an invokedynamic instruction (§invokedynamic) to specify a bootstrap method, the dynamic invocation name, the argument and return types of the call, and optionally, a sequence of additional constants called static arguments to the bootstrap method.
CONSTANT_InvokeDynamic_info {
u1 tag;
u2 bootstrap_method_attr_index;
u2 name_and_type_index;
}
The items of the CONSTANT_InvokeDynamic_info structure are as follows:
-
tag
The
tagitem of theCONSTANT_InvokeDynamic_infostructure has the valueCONSTANT_InvokeDynamic(18). -
bootstrap_method_attr_index
The value of the
bootstrap_method_attr_indexitem must be a valid index into thebootstrap_methodsarray of the bootstrap method table (§4.7.23) of thisclassfile. -
name_and_type_index
The value of the
name_and_type_indexitem must be a valid index into theconstant_pooltable. Theconstant_poolentry at that index must be aCONSTANT_NameAndType_infostructure (§4.4.6) representing a method name and method descriptor (§4.3.3).