<div>On Thu, Feb 16, 2023 at 1:59 PM Liam Miller-Cushon <<a href="mailto:cushon@google.com">cushon@google.com</a>> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think this is deliberate and covered by <a href="https://docs.oracle.com/javase/specs/jls/se19/html/jls-9.html#jls-9.7.4" target="_blank">https://docs.oracle.com/javase/specs/jls/se19/html/jls-9.html#jls-9.7.4</a><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A declaration annotation is ... an annotation that applies to a class, interface, or type parameter declaration, and whose annotation interface is applicable in type contexts</blockquote><div></div></div></blockquote><div dir="auto"><br></div><div dir="auto">But @A does not have ElementType.TYPE which is what I take to be the manifestation of “applicable in type contexts”. Maybe I’m wrong?</div></div></div>