-
CSR
-
Resolution: Approved
-
P4
-
None
-
behavioral
-
minimal
-
Java API
-
SE
Summary
Update text of java.lang.annotation.Target
to match changes in JLS 9.6.4.1 (JDK-8261610).
Problem
The described semantics in JLS 9.6.4.1 and Target
are out of sync.
Solution
Make the specs consistent by describing the absence of a Target
annotation to mean "all declaration contexts."
Specification
* <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.
- csr of
-
JDK-8270916 Update java.lang.annotation.Target for changes in JLS 9.6.4.1
-
- Resolved
-
- relates to
-
JDK-8261610 9.6.4.1: Refine no-@Target to mean "applicable in all declaration contexts"
-
- Resolved
-