Wrong file regex for copyright header format check in .jcheck/conf

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: infrastructure
    • None
    • b10

      The copyright header format check was introduced in JDK-8346046. However, a user recently reported that the check doesn't catch incorrect copyright headers in this pr(https://github.com/openjdk/jdk/pull/23550).

      After investigation, I found that the issue was caused by the file regex in .jcheck/conf. There is a redundant "|" character after ".*\.jar".

      files=^(?!LICENSE|license\.txt|.*\.bin|.*\.gif|.*\.jpg|.*\.png|.*\.icon|.*\.tiff|.*\.dat|.*\.patch|.*\.wav|.*\.class|.*-header|.*\.jar|).*

      This redundant "|" prevents the regex from matching any string.

            Assignee:
            Zhao Song
            Reporter:
            Zhao Song
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: