Elements#getDocComment returns null for record components

Josiah Noel josiahnoel at gmail.com
Wed Apr 3 21:43:01 UTC 2024


I have created a simple project that reproduces the issue:
SentryMan/record-javadoc-APT-bug
(github.com) <https://github.com/SentryMan/record-javadoc-APT-bug>

On Tue, Apr 2, 2024 at 2:55 PM Josiah Noel <josiahnoel at gmail.com> wrote:

> Hello there,
>
> It seems that when I try to read the Javadoc for record components with my
> annotation processor, I get null. When I convert the record into a regular
> class it works as expected.
> --
> Cheers, Josiah.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20240403/5060472f/attachment.htm>


More information about the compiler-dev mailing list