RFR: 8303784: no- at Target annotations should be applicable to type parameter declarations [v2]

Joe Darcy darcy at openjdk.org
Tue Mar 14 18:34:45 UTC 2023


On Tue, 14 Mar 2023 15:52:28 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

>> Please consider this fix for https://bugs.openjdk.org/browse/JDK-8303784, which make `@Target`-less annotations applicable to type parameter declarations.
>> 
>> `@Target`-less annotations are applicable to 'all declaration contexts', which includes type parameter declarations.
>
> Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Move test under `test/langtools/tools/javac/annotations/typeAnnotations`

Please file a CSR to review the change in behavior of javac to conform with the spec.

-------------

PR: https://git.openjdk.org/jdk/pull/12914


More information about the compiler-dev mailing list