RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v4]
Andrew Leonard
aleonard at openjdk.java.net
Thu Nov 25 10:05:07 UTC 2021
On Thu, 25 Nov 2021 09:37:59 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:
>> test/jdk/tools/jar/JarEntryTime.java line 129:
>>
>>> 127: // Make a jar file from that directory structure with
>>> 128: // --source-date set to epoch seconds 1647302400 (15/03/2022)
>>> 129: long sourceDate = 1647302400L;
>>
>> Please consider adding a few before Epoch test values.
>
> @LanceAndersen can you clarify your meaning here please? Are you referring to negative sourceDate? I put in the CSR that it was seconds "since" epoch akin to SOURCE_DATE_EPOCH, which as far as I can tell does not support negative values, as some time implementations won't support that.
> But this does imply I should add some -ve validation checks.
I think we could support -ve values, though i'd need to alter a couple of things
-------------
PR: https://git.openjdk.java.net/jdk/pull/6481
More information about the compiler-dev
mailing list