Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8270916: Update java.lang.annotation.Target for changes in JLS 9.6.4.1
Reviewed-by: bpb, naoto
  • Loading branch information
jddarcy committed Jul 22, 2021
1 parent 4812e53 commit ecc37b06f283c18ab4aa2b23562843bca14da85d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/java.base/share/classes/java/lang/annotation/Target.java
@@ -28,16 +28,16 @@
/**
* Indicates the contexts in which an annotation interface is applicable. The
* declaration contexts and type contexts in which an annotation interface may
* be applicable are specified in JLS 9.6.4.1, and denoted in source code by
* be applicable are specified in JLS {@jls 9.6.4.1}, and denoted in source code by
* enum constants of {@link ElementType java.lang.annotation.ElementType}.
*
* <p>If an {@code @Target} meta-annotation is not present on an annotation
* interface {@code T}, then an annotation of type {@code T} may be written as
* a modifier for any declaration except a type parameter declaration.
* a modifier for any declaration.
*
* <p>If an {@code @Target} meta-annotation is present, the compiler will enforce
* the usage restrictions indicated by {@code ElementType}
* enum constants, in line with JLS 9.7.4.
* enum constants, in line with JLS {@jls 9.7.4}.
*
* <p>For example, this {@code @Target} meta-annotation indicates that the
* declared interface is itself a meta-annotation interface. It can only be

1 comment on commit ecc37b0

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on ecc37b0 Jul 22, 2021

Please sign in to comment.