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

# Interface SourceIDAttribute

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

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

public sealed interface SourceIDAttribute extends AttributePREVIEW <SourceIDAttribute>, ClassElementPREVIEW
Models the `SourceID` attribute, which records the last modified time of the source file from which this `class` file was compiled.

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.sourceId()`
  - `CompilationIDAttribute`
  - `CharacterRangeTableAttribute`

## Methods

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

## Summary

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