Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: 73aa7122b79dde939f6b0705b9af1acfced45806
https://github.com/pmd/pmd/commit/73aa7122b79dde939f6b0705b9af1acfced45806
Author: fudian <[email protected]>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
M docs/pages/release_notes.md
M
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTCompilationUnit.java
M pmd-java/src/main/javacc/Java.jjt
M
pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/JavaCommentTest.java
M
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/documentation/xml/DanglingJavadoc.xml
Log Message:
-----------
[java] Fix #6450: DanglingJavadoc should ignore markdown javadoc (///) before
Java 23 (#6951)
* [java] Fix #6450: Treat /// comments as markdown javadoc only since Java 23
Markdown documentation comments (JEP 467) are available since Java 23.
ASTCompilationUnit#setComments now collapses consecutive /// comments
into JavadocComments only when the language version is >= 23, so on
older versions they stay ordinary single line comments and are no
longer reported by DanglingJavadoc. Other comment consumers see the
same consistent model.
This supersedes the "keep it simple for now" decision from #5916, see
the discussion in #6450 and #6951.
Signed-off-by: 付典 <[email protected]>
* fix comment
* fix which versions to test
---------
Signed-off-by: 付典 <[email protected]>
Co-authored-by: Sören Glimm <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/pmd/pmd/settings/notifications
_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits