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 <anleo...@redhat.com> ------------- Commit messages: - 8276764: Enable deterministic file content ordering for Jar and Jmod Changes: https://git.openjdk.java.net/jdk/pull/6395/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6395&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8276764 Stats: 209 lines in 4 files changed: 199 ins; 2 del; 8 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