Hi Archie,

Note that we have a script for that; see
make/scripts/update_copyright_year.sh . I use it a lot. Sonia recently
enhanced it. It even has an option to update copyrights for foreign
companies.

Calling it from the source root usually works well, it only still struggles
with large merge commits (e.g. in long-running reviews).

Cheers, Thomas

On Tue, Dec 3, 2024 at 4:45 PM Archie Cobbs <archie.co...@gmail.com> wrote:

> Dumb question...
>
> It seems like the thing with updating copyright years in source files
> could be better automated. At least, couldn't there be a test that fails if
> you forget?
>
> FWIW my little updater script says that these files still need to be
> updated to 2024:
>
> .github/actions/config/action.yml
> .github/actions/do-build/action.yml
> .github/actions/get-bootjdk/action.yml
> .github/actions/get-bundles/action.yml
> .github/actions/get-msys2/action.yml
> .github/scripts/gen-build-failure-report.sh
> .github/scripts/gen-test-summary.sh
> .github/workflows/build-cross-compile.yml
> .github/workflows/test.yml
> src/java.base/share/classes/jdk/internal/org/xml/sax/Attributes.java
> src/java.base/share/classes/jdk/internal/org/xml/sax/InputSource.java
> src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java
> src/java.base/share/classes/jdk/internal/org/xml/sax/SAXParseException.java
> src/java.base/share/classes/jdk/internal/org/xml/sax/XMLReader.java
>
> src/java.base/share/classes/jdk/internal/org/xml/sax/helpers/DefaultHandler.java
> src/java.base/share/classes/jdk/internal/platform/Metrics.java
> test/hotspot/jtreg/compiler/vectorization/runner/BasicIntOpTest.java
> test/hotspot/jtreg/compiler/vectorization/runner/BasicLongOpTest.java
> test/hotspot/jtreg/compiler/whitebox/DeoptimizeFramesTest.java
>
> -Archie
>
> --
> Archie L. Cobbs
>

Reply via email to