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

Andrew Leonard aleonard at openjdk.java.net
Fri Nov 19 09:58:25 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 two additional commits since the last revision:

 - 8276764: Enable deterministic file content ordering for Jar and Jmod
   
   Signed-off-by: Andrew Leonard <anleonar at redhat.com>
 - 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/3e87db19..772b89a4

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

  Stats: 227 lines in 3 files changed: 201 ins; 1 del; 25 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