RFR: 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview)

Chen Liang liach at openjdk.org
Fri Mar 22 18:36:54 UTC 2024


On Mon, 4 Mar 2024 02:45:09 GMT, Guoxiong Li <gli at openjdk.org> wrote:

>> test/langtools/tools/javac/DefiniteAssignment/DA_DUConstructors.java line 1:
>> 
>>> 1: /*
>> 
>> Missing copyright header
>
> Please notice the test annotation `@test /nodynamiccopyright/`, it means this file doesn't have a copyright. When the copyright is changed (add or delete lines) in the future, the line number of the compilation result will change, which cause the file `*.out` (`DA_DUConstructors.out` here) need to be adjusted. The `/nodynamiccopyright/` can avoid such unnecessary adjustment.

Is there a default copyright for such a file without a copyright header? I would assume it's simply copyright Oracle Corporation, all rights reserved?

Also please bear with my comment, I know you feel impatient but I've never seen this tag before. The usage of `/nodynamiccopyright/` seems to be only in javac for preservation of hardcoded line number purposes so I was ignorant about it, as I mostly worked with other parts of the JDK.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18088#discussion_r1510532278


More information about the compiler-dev mailing list