RFR: 8371978: tools/jar/ReproducibleJar.java fails on XFS

SendaoYan syan at openjdk.org
Thu Dec 4 07:38:07 UTC 2025


On Tue, 18 Nov 2025 08:24:13 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> Test tools/jar/ReproducibleJar.java fails when running on a file system that only supports to 2038(e.g. XFS).
> 
> Before this PR, test check if the input test time after "2038-01-19T03:14:07Z" and the extracted time created by jar is equal to "2038-01-19T03:14:07Z", then test will skip that check.
> 
> But the extraced time created by jar equal to "1970-01-01T00:00:00Z" actually. I think the extracted time set to unix epoch time is acceptable, so this PR fix the test make test check skip when the extracted time is unix epoch time.
> 
> Change has been verified locally on XFS file system and ext4 file system.

Sorry for the delay response.

Thanks for the test and reviews @jaikiran .

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

PR Comment: https://git.openjdk.org/jdk/pull/28367#issuecomment-3610690265


More information about the core-libs-dev mailing list