On Tue, 20 Sep 2022 19:15:22 GMT, ScientificWare <[email protected]> wrote:

> Is there an official Copyright License Header for test codes.

For new files, you usually take the copyright comment from a file nearby. All 
tests should use GPLv2 _**without** the "Classpath" exception_. The source code 
in `src` directory has the "Classpath" exception.

> Adding `@author` tag is not allowed

Here's a quote from [the jtreg tag 
spec](https://openjdk.org/jtreg/tag-spec.html#INFORMATIONAL_TAGS): “Use of this 
tag is now generally _discouraged_; information about the author and other 
contributions is generally better left to the source code management system for 
the test suite.”

With Git, your name will be associated with the commit, thus all the code you 
contribute, unless modified, will be attributed to you without the use of the 
`@author` tag.

> …but what's about copyright mention ?

You contribute the code [under the 
OCA](https://openjdk.org/guide/#sign-the-oca), “This agreement gives Oracle and 
you as a contributor joint copyright interests in the code. You will retain 
your copyright while also granting those rights to Oracle.”

-------------

PR: https://git.openjdk.org/jdk/pull/10360

Reply via email to