RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v13]
Magnus Ihse Bursie
ihse at openjdk.java.net
Wed Dec 1 14:15:31 UTC 2021
On Wed, 1 Dec 2021 11:06:12 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:
>> Add a new --source-date <TIMESTAMP> (epoch seconds) option to jar and jmod to allow specification of time to use for created/updated jar/jmod entries. This then allows the ability to make the content deterministic.
>>
>> 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:
>
> - 8276766: Enable jar and jmod to produce deterministic timestamped content
>
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
> - 8276766: Enable jar and jmod to produce deterministic timestamped content
>
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
src/jdk.jlink/share/classes/jdk/tools/jmod/JmodOutputStream.java line 65:
> 63:
> 64: private final ZipOutputStream zos;
> 65: private final LocalDateTime date;
Suggestion:
private final LocalDateTime date;
No need for extra spaces.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6481
More information about the compiler-dev
mailing list