RFR: 8349934: Wrong file regex for copyright header format check in .jcheck/conf
Zhao Song
zsong at openjdk.org
Wed Feb 12 21:29:10 UTC 2025
On Wed, 12 Feb 2025 19:49:42 GMT, Zhao Song <zsong at openjdk.org> wrote:
> The copyright header format check was introduced in [JDK-8346046](https://bugs.openjdk.org/browse/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.
Thank you for the quick review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23598#issuecomment-2654877190
More information about the build-dev
mailing list