Integrated: 8293519: deprecation warnings should be emitted for uses of annotation methods inside other annotations
Vicente Romero
vromero at openjdk.org
Tue Jan 31 18:23:46 UTC 2023
On Sun, 29 Jan 2023 04:19:49 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Javac is forgetting to double check if the left hand side in an annotation name-value pair is a deprecated method, basically in this case:
>
> @interface Anno {
> @Deprecated
> boolean b() default false;
> }
>
> @Anno(b = true) // a warning should be issued here
> class Foo {}
>
> this PR is fixing this oversight,
>
> TIA
This pull request has now been integrated.
Changeset: 6beadbbe
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6beadbbe9f0721fbdfc48e6f2c14aa6dab982be0
Stats: 20 lines in 3 files changed: 20 ins; 0 del; 0 mod
8293519: deprecation warnings should be emitted for uses of annotation methods inside other annotations
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/12280
More information about the compiler-dev
mailing list