RFR: 8231436: Fix the applicability of a no- at Target annotation type

Liam Miller-Cushon cushon at google.com
Thu Feb 11 19:28:00 UTC 2021

On Thu, Feb 11, 2021 at 9:52 AM Alex Buckley <alex.buckley at oracle.com>

> On 2/9/2021 6:34 AM, Brian Goetz wrote:
> > So I agree with Joe that:
> >
> >> I think it can be reasonable to interpret lack of @Target to mean
> >> "usable in any declaration context," but ill-advised to silently
> >> reinterpret absence of a @Target to indicate types and declarations.
> >
> > and prefer that we leave the existing interpretation of "all declaration
> > contexts" for NTAs.
> Thanks Brian. I will proceed with that policy by filing a new spec bug
> to overrule JDK-8231435.

Thanks all. I will close this review.

To confirm, is there still consensus that "all declaration contexts" for
NTAs includes declaration contexts introduced in later language levels,
i.e. NTAs should be applicable to module declarations in Java >= 9, and
that it's OK to proceed with JDK-8261088?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20210211/cfad4665/attachment.htm>

More information about the compiler-dev mailing list