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

# Interface CompilationIDAttribute

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

All Superinterfaces:
  `AttributePREVIEW <CompilationIDAttribute>, ClassElementPREVIEW , ClassFileElement`

public sealed interface CompilationIDAttribute extends AttributePREVIEW <CompilationIDAttribute>, ClassElementPREVIEW
Models the `CompilationID` attribute, which records the compilation time of the `class` file.

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 is not predefined in the Java SE Platform. This is a JDK-specific nonstandard attribute produced by the reference implementation of the system Java compiler, defined by the `jdk.compiler` module.

Since:
  24
See Also:
  - `Attributes.compilationId()`
  - `CharacterRangeTableAttribute`
  - `SourceIDAttribute`

## Methods

- =
  public abstract java.lang.classfile.constantpool.Utf8Entry compilationId()
- =
  public static java.lang.classfile.attribute.CompilationIDAttribute of(java.lang.String arg0)
- =
  public static java.lang.classfile.attribute.CompilationIDAttribute of(java.lang.classfile.constantpool.Utf8Entry arg0)

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
CompilationIDAttribute |  |  |  |  |  |  | 4 |  |  | 4
Total |  |  |  |  |  |  | 4 |  |  | 4