RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v14]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Feb 28 22:06:54 UTC 2025


On Fri, 28 Feb 2025 19:49:35 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> I originally was handling things "as they come", based on the assumption that reports always occur prior to the completion of their containing declaration, but that's not true (`dangling-doc-comment` violates it).

Just one question: looking at your code, it seems that `saveDanglingDocComments` is always called _before_ `endDecl`. So I'm not sure how to read your comment. Perhaps you were hoping for all the warnings to be "contained" in the declaration body (and this would indeed be violated by comments, but also warnings on annotations).

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

PR Comment: https://git.openjdk.org/jdk/pull/23237#issuecomment-2691622984


More information about the compiler-dev mailing list