GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] DanglingJavadoc FP in module-info files · Issue #6058 · pmd/pmd

[java] DanglingJavadoc FP in module-info files #6058

New issue
Copy link
New issue
Copy link
Closed
#6059
Closed
[java] DanglingJavadoc FP in module-info files#6058
#6059
Copy link
Labels
a:false-positivePMD flags a piece of code that is not problematic
Milestone
7.18.0

Description

@jorsol
jorsol
opened on Sep 12, 2025
Issue body actions

Affects PMD Version:
7.17.0

Rule:
DanglingJavadoc

Please provide the rule name and a link to the rule documentation:
https://docs.pmd-code.org/pmd-doc-7.17.0/pmd_rules_java_documentation.html#danglingjavadoc

Description:

Code Sample demonstrating the issue:

/**
 * My Modules Documentation.
 *
 * @since 1.0
 */
module my.module.name {
  exports my.package.name;
  requires org.jspecify;
}

Expected outcome:

PMD reports a violation at line 1, but that's wrong. That's a false positive. Modules can also have JavaDoc.

Running PMD through: Maven

Reacted by Ben Manes and Dr. Christian Kohlschütter

Activity

  1. jorsol
    added
    a:false-positivePMD flags a piece of code that is not problematic
    on Sep 12, 2025
  2. lukasgraef
    added 2 commits that reference this issue on Sep 13, 2025

    [java] Fix pmd#6058: DanglingJavadoc FP in module-info files

    This issue will close once commit 0deeae2 is merged into the 'master' branch.
    0deeae2

    pmd#6058: ASTModuleDeclaration now implements JavadocCommentOwner

    This issue will close once commit a558c0a is merged into the 'master' branch.
    a558c0a
  3. adangel
    changed the title [-]module-info.java Rule:DanglingJavadoc[/-] [+][java] DanglingJavadoc: False positive with module-info.java[/+] on Sep 25, 2025
  4. adangel
    changed the title [-][java] DanglingJavadoc: False positive with module-info.java[/-] [+][java] DanglingJavadoc FP in module-info files[/+] on Sep 25, 2025
  5. adangel
    added 2 commits that reference this issue on Sep 25, 2025

    [java] Fix pmd#6058: DanglingJavadoc FP in module-info files

    This issue will close once commit c37b29c is merged into the 'master' branch.
    c37b29c

    pmd#6058: ASTModuleDeclaration now implements JavadocCommentOwner

    This issue will close once commit ae430a9 is merged into the 'master' branch.
    ae430a9
  6. adangel
    added this to the 7.18.0 milestone on Sep 25, 2025
  7. adangel
    closed this as completedin c37b29con Sep 25, 2025
  8. adangel
    added 2 commits that reference this issue on Sep 25, 2025

    [doc] Update release notes (#6058, #6059)

    121216b

    [java] Fix #6058: DanglingJavadoc FP in module-info files (#6059)

    908dcfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:false-positivePMD flags a piece of code that is not problematic

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.18.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.