Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346294

Invalid lint category specified in compiler.properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • tools
    • 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.

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

              Created:
              Updated:
              Resolved: