Is a TYPE_USE annotation stored as such in a class file?

Laird Nelson ljnelson at gmail.com
Thu Feb 16 22:33:01 UTC 2023


On Thu, Feb 16, 2023 at 1:59 PM Liam Miller-Cushon <cushon at google.com>
wrote:

> I think this is deliberate and covered by
> https://docs.oracle.com/javase/specs/jls/se19/html/jls-9.html#jls-9.7.4
>
> 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
>
>
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20230216/5f1f03fe/attachment.htm>


More information about the compiler-dev mailing list