---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 9 Edition"
java_version: 9
chapter: "Chapter 4. The class File Format"
section: "4.4.10"
heading: "4.4.10. The CONSTANT_InvokeDynamic_info Structure"
parent: "4.4. The Constant Pool"
source: https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.4.10
id: "4.4.10"
url: https://jvm.obfuscated.software/jvms/se9/4.4.10.html
raw: https://jvm.obfuscated.software/jvms/se9/4.4.10.md
---

# 4.4.10. The `CONSTANT_InvokeDynamic_info` Structure

The `CONSTANT_InvokeDynamic_info` structure is used by an *invokedynamic* instruction ([§*invokedynamic*](6.5.invokedynamic.md)) 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 `tag` item has the value `CONSTANT_InvokeDynamic` (18).

- **bootstrap_method_attr_index**

  The value of the `bootstrap_method_attr_index` item must be a valid index into the `bootstrap_methods` array of the bootstrap method table ([§4.7.23](4.7.23.md)) of this `class` file.

- **name_and_type_index**

  The value of the `name_and_type_index` item must be a valid index into the `constant_pool` table. The `constant_pool` entry at that index must be a `CONSTANT_NameAndType_info` structure ([§4.4.6](4.4.6.md)) representing a method name and method descriptor ([§4.3.3](4.3.3.md)).
