RFR: 8276764: Enable deterministic file content ordering for Jar and Jmod [v7]

Andrew Leonard aleonard at openjdk.java.net
Tue Nov 23 10:04:51 UTC 2021


> Both jar and jmod utilise java.io file operations whose methods define no ordering of the return file lists, and in fact rely on OS query file ordering, which can differ by underlying OS architecture.
> This PR adds sort processing to the creation of such jar's and jmod's to enable a deterministic content ordering.
> 
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>

Andrew Leonard has updated the pull request incrementally with one additional commit since the last revision:

  8276764: Enable deterministic file content ordering for Jar and Jmod
  
  Signed-off-by: Andrew Leonard <anleonar at redhat.com>

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6395/files
  - new: https://git.openjdk.java.net/jdk/pull/6395/files/2a7668f1..58772b58

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6395&range=06
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6395&range=05-06

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6395.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6395/head:pull/6395

PR: https://git.openjdk.java.net/jdk/pull/6395


More information about the compiler-dev mailing list