<div dir="ltr">Another TYPE_USE question. Consider:<div><br></div><div><a class="gmail_plusreply" id="plusReplyChip-2">@Retention(RetentionPolicy.RUNTIME)</a><br></div><div>@Target({ ElementType.TYPE_USE })</div><div>@interface A {}</div><div><br></div><div><a class="gmail_plusreply" id="plusReplyChip-5">@A </a>class B{}</div><div><br></div><div>I am surprised to see @A in the returned array from B.class.getAnnotations() since it is not an element annotation.</div><div><br></div><div><div>Furthermore, I do not see the string "RuntimeVisibleTypeAnnotations" in the class file for B (which is why I'm writing to the compiler-dev list). I am no VM/bytecode person but I would expect to see that if a runtime-visible type use annotation is being recorded, yes? Although I do not see a place in the target_info structure that would to my naive eyes be suitable for this particular usage.</div></div><div><br></div><div>Is @A's usage here recorded in the wrong place as the wrong sort of thing?  This has a whiff of <a href="https://bugs.openjdk.org/browse/JDK-8030751">https://bugs.openjdk.org/browse/JDK-8030751</a> to it but I wanted to confirm.</div><div><br></div><div>Thanks,</div><div>Laird<a class="gmail_plusreply"><br></a></div></div>