On Tue, 21 Nov 2023 18:51:55 GMT, Jim Laskey <jlas...@openjdk.org> wrote:

> The comments are attached to the modifiers (first thing it encounters.) I’m 
> sure the javadoc toolset has a method that gets the comments from the right 
> thing.

In the AST created by the parser, doc comments should be attached to 
_declarations_ (`JCClassDecl`, `JCMethodDecl`, `JCVariableDecl` etc) not 
modifiers.  There is nothing in the javadoc toolset that _gets the comments 
from the right thing_.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16461#issuecomment-1821645764

Reply via email to