8347762: ClassFile attribute specification refers to non-SE modules

Reviewed-by: darcy, dholmes
This commit is contained in:
Chen Liang 2025-01-15 05:24:43 +00:00
parent be1cdd9450
commit 28e01e6559
7 changed files with 15 additions and 22 deletions

View file

@ -62,15 +62,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* attribute instance in the built {@code Code} attribute.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.compiler/
* implementation of the system Java compiler}.
* JDK-specific nonstandard attribute produced by the reference implementation
* of the system Java compiler, defined by the {@code jdk.compiler} module.
*
* @see Attributes#characterRangeTable()
* @see CompilationIDAttribute
* @see SourceIDAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface CharacterRangeTableAttribute
extends Attribute<CharacterRangeTableAttribute>
permits BoundAttribute.BoundCharacterRangeTableAttribute,

View file

@ -45,15 +45,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.compiler/
* implementation of the system Java compiler}.
* JDK-specific nonstandard attribute produced by the reference implementation
* of the system Java compiler, defined by the {@code jdk.compiler} module.
*
* @see Attributes#compilationId()
* @see CharacterRangeTableAttribute
* @see SourceIDAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface CompilationIDAttribute
extends Attribute<CompilationIDAttribute>, ClassElement
permits BoundAttribute.BoundCompilationIDAttribute,

View file

@ -45,16 +45,15 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* When this attribute is present, the {@link Deprecated} annotation should
* also be present in the {@link RuntimeVisibleAnnotationsAttribute
* RuntimeVisibleAnnotations} attribute to provide more obvious alerts.
* The {@linkplain jdk.compiler/ implementation of the system Java compiler}
* emits this attribute without the annotation when a {@code @deprecated} tag
* is present in the documentation comments without the annotation.
* The reference implementation of the system Java compiler emits this attribute
* without the annotation when a {@code @deprecated} tag is present in the
* documentation comments without the annotation.
*
* @see Attributes#deprecated()
* @see Deprecated
* @jvms 4.7.15 The {@code Deprecated} Attribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface DeprecatedAttribute
extends Attribute<DeprecatedAttribute>,
ClassElement, MethodElement, FieldElement

View file

@ -70,15 +70,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.jlink/
* jlink and jmod tools} and used by the implementation.
* JDK-specific nonstandard attribute produced by the {@code jdk.jlink} module,
* which defines the {@code jlink} and {@code jmod} tools.
*
* @see Attributes#moduleHashes()
* @see ModuleResolutionAttribute
* @see ModuleTargetAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface ModuleHashesAttribute
extends Attribute<ModuleHashesAttribute>, ClassElement
permits BoundAttribute.BoundModuleHashesAttribute, UnboundAttribute.UnboundModuleHashesAttribute {

View file

@ -65,15 +65,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* {@linkplain AttributeStability#STATELESS no data dependency}.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.jlink/
* jlink and jmod tools} and used by the implementation.
* JDK-specific nonstandard attribute produced by the {@code jdk.jlink} module,
* which defines the {@code jlink} and {@code jmod} tools.
*
* @see Attributes#moduleResolution()
* @see ModuleHashesAttribute
* @see ModuleTargetAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface ModuleResolutionAttribute
extends Attribute<ModuleResolutionAttribute>, ClassElement
permits BoundAttribute.BoundModuleResolutionAttribute, UnboundAttribute.UnboundModuleResolutionAttribute {

View file

@ -60,15 +60,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.jlink/
* jlink and jmod tools} and used by the implementation.
* JDK-specific nonstandard attribute produced by the {@code jdk.jlink} module,
* which defines the {@code jlink} and {@code jmod} tools.
*
* @see Attributes#moduleTarget()
* @see ModuleHashesAttribute
* @see ModuleResolutionAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface ModuleTargetAttribute
extends Attribute<ModuleTargetAttribute>, ClassElement
permits BoundAttribute.BoundModuleTargetAttribute, UnboundAttribute.UnboundModuleTargetAttribute {

View file

@ -46,15 +46,14 @@ import jdk.internal.classfile.impl.UnboundAttribute;
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
* <p>
* This attribute is not predefined in the Java SE Platform. This is a
* JDK-specific nonstandard attribute produced by the {@linkplain jdk.compiler/
* implementation of the system Java compiler}.
* JDK-specific nonstandard attribute produced by the reference implementation
* of the system Java compiler, defined by the {@code jdk.compiler} module.
*
* @see Attributes#sourceId()
* @see CompilationIDAttribute
* @see CharacterRangeTableAttribute
* @since 24
*/
@SuppressWarnings("doclint:reference")
public sealed interface SourceIDAttribute
extends Attribute<SourceIDAttribute>, ClassElement
permits BoundAttribute.BoundSourceIDAttribute, UnboundAttribute.UnboundSourceIDAttribute {