Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8258525

Some existing tests should use /nodynamiccopyright/ instead of the standard header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 15
    • tools
    • b04

      A number of test files contain a full legal header, and could break the related test if ever the length of the legal header is changed, because of the presence of line numbers identifying positions in that file.

      The standard approach for such files is to omit the legal header and include the string `/nodynamiccopyright/` near the top of the file, to inform any automated scripts that the file should not have a full legal header.

      The following rule should help determine the files which should use `/nodynamiccopyright/` instead of a full legal header:

      If a test contains an action of the form
          `@compile/fail/ref=FILE.out`
      and `FILE.out` contains lines of the form
          `FILENAME:LINE:CHAR; message`
      where FILENAME is a "nearby file", typically in the same directory or a subdirectory, then that file should use `nodynamiccopyright` instead of a full legal header.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: