Module java.base
Package java.lang.classfile.attribute

# Interface BootstrapMethodsAttribute

≠
public abstract sealed interface BootstrapMethodsAttribute
extends java.lang.classfile.Attribute<java.lang.classfile.attribute.BootstrapMethodsAttribute>
permits jdk.internal.classfile.impl.BoundAttribute.BoundBootstrapMethodsAttribute, jdk.internal.classfile.impl.UnboundAttribute.EmptyBootstrapAttribute
Comparing jdk-master and valhalla-csr-open

All Superinterfaces:
  `AttributePREVIEW <BootstrapMethodsAttribute>, ClassFileElement`

public sealed interface BootstrapMethodsAttribute extends AttributePREVIEW <BootstrapMethodsAttribute>
Models the `BootstrapMethods` attribute (JVMS §4.7.23), which stores symbolic information for the execution of bootstrap methods, used by dynamically-computed call sites and constants. It is logically a part of the constant pool of a `class` file and thus not delivered in `ClassModel` traversal; its elements are accessible through `ConstantPool` .

This attribute only appears on classes, and does not permit multiple instances in a class. It has a data dependency on the constant pool.

This attribute cannot be constructed directly; its entries can be constructed through `ConstantPoolBuilder.bsmEntry(DirectMethodHandleDesc, List)` , resulting in at most one attribute instance in the built `class` file.

The attribute was introduced in the Java SE Platform version 7, major version 51.

See Java Virtual Machine Specification:
  4.7.23 The `BootstrapMethods` Attribute
Since:
  24
See Also:
  - `Attributes.bootstrapMethods()`
  - Execution of bootstrap methods

## Methods

- =
  public abstract java.util.List<java.lang.classfile.BootstrapMethodEntry> bootstrapMethods()
- =
  public abstract int bootstrapMethodsSize()

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
BootstrapMethodsAttribute |  |  |  |  |  |  | 2 |  |  | 2
Total |  |  |  |  |  |  | 2 |  |  | 2