RFR: 8276743: Make openjdk build Zip Archive generation "reproducible" [v2]

Andrew Leonard aleonard at openjdk.java.net
Thu Nov 11 15:22:17 UTC 2021


On Wed, 10 Nov 2021 11:22:39 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:

>> Actually, you don't even need to save the ZipEntry:s in memory, you can just extract filenames from them on the first pass, sort them, then lookup the entries in ZipFile again on the second lap. :) I don't think that's necessary though.
>
> @erikj79 thanks I didn't realize you can do that: "you can use the ZipFile class to access ZipEntry's in arbitrary order"

See new commit

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

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



More information about the build-dev mailing list