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

Enable deterministic file content ordering for Jar and Jmod

    XMLWordPrintable

Details

    • b26

    Backports

      Description

        Currently both Jar and Jmod collect file lists using File.list() and Files.walkFileTree(). Both of these have no defined ordering according to the Java spec, but also the current implementation of these methods falls through to OS file system I/O calls, whose ordering is non-deterministic and typically dependent on CPU architecture (eg.AMD differs from Intel).

        This enhancement will enable us to produce "reproducible build" Jars and Jmods.

        Attachments

          Issue Links

            Activity

              People

                aleonard Andrew Leonard
                aleonard Andrew Leonard
                Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: