Invalid lint category specified in compiler.properties

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • Environment:

      Since jdk-25+2-39-gdbffe33251d.

    • b03
    • generic
    • generic

      After JDK-8345263, lint warnings in compiler.properties are now annotated with their corresponding lint categories, which is a great improvement.

      However, the build process does not verify these categories. As a result, errors are possible, and indeed there is one already:

          # lint: dangling
          compiler.warn.dangling.doc.comment=\
              documentation comment is not attached to any declaration
       
      There is no such lint category "dangling"; it should be "dangling-doc-comments".

      This typo should be fixed, but also the build process should be updated to automatically fail in this scenario if it occurs again in the future.

            Assignee:
            Archie Cobbs
            Reporter:
            Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: