`Elements.getAllAnnotationMirrors` clarification?

Josiah Noel josiahnoel at gmail.com
Tue Apr 29 03:15:23 UTC 2025


Hey team,

Reading the Javadoc for Elements.getAllAnnotationMirrors, I got the
impression that this method should include mirrors from super methods when
given an executable element or mirrors from super classes when given a type
element. Is this not the case?

I was trying both of these, but the result didn't appear to be any
different than Element. getAnnotationMirrors(). In what situation does
Elements.getAllAnnotationMirrors give a different result?

-- 
Cheers, Josiah.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20250428/a2fea04a/attachment.htm>


More information about the compiler-dev mailing list