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

Liam Miller-Cushon cushon at openjdk.org
Thu Mar 23 14:52:07 UTC 2023


On Thu, 23 Mar 2023 04:27:00 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> test/langtools/tools/javac/annotations/typeAnnotations/NoTargetOnTypeParameterDeclaration.java line 29:
>> 
>>> 27:  * @summary no- at Target annotations should be applicable to type parameter declarations
>>> 28:  * @compile/fail/ref=NoTargetOnTypeParameterDeclaration.out --release 13 -XDrawDiagnostics NoTargetOnTypeParameterDeclaration.java
>>> 29:  * @compile --release 14 NoTargetOnTypeParameterDeclaration.java
>> 
>> suggestion: you could add another command to compile the source with no `--release` option so that the behavior is checked for current and future releases too
>
>> suggestion: you could add another command to compile the source with no `--release` option so that the behavior is checked for current and future releases too
> 
> Yes, I agree that is a good suggestion and our standard testing practice.

Done, thanks!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12914#discussion_r1146311865


More information about the compiler-dev mailing list