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

ct.sym zip not reproducible across build environment timezones

XMLWordPrintable

      ct.sym is a zip file containing symbol data created by the CreateSymbols build
      tool. It takes an EPOCH timestamp to set the date of the ZipEntries, however
      it uses ZipEntry.setTime(timestamp) which will set the encoded ZipEntry content, with a local timestamp dependent on the build system TimeZone.
      This is thus not-reproducible, as can be seen in this example of two builds
      on different timezone machines:
        Length Date Time Name
      --------- ---------- ----- ----
              0 2024-01-16 00:00 8/java.activation/javax/activation/
        Length Date Time Name
      --------- ---------- ----- ----
              0 2024-01-15 19:00 8/java.activation/javax/activation/

      The CreateSymbols build tool needs to use setTimeLocal(UTCtimestamp) to be reproducible.

            aleonard Andrew Leonard
            aleonard Andrew Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: