RFR: 8366439: test/jdk/java/util/zip/ZipFile/ZipSourceCache.java fails with AssertionFailedError: expected: <6> but was: <5>

Eirik Bjørsnøs eirbjo at openjdk.org
Wed Sep 3 09:18:46 UTC 2025


On Wed, 3 Sep 2025 08:53:22 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> However, i can't think of a simple way to avoid such situations.

Adding file size into the mix should be cheap while still improving the heuristics on file systems with course time granularity. This will also help cases where the last modified date is explicitly set by the system and cannot be trusted and on file systems which don't support last modification date at all and always return something like the epoch.

Adding file size would likely aviod this test failure, however it's maybe better to consider in a separate change.

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

PR Comment: https://git.openjdk.org/jdk/pull/27005#issuecomment-3248402569


More information about the core-libs-dev mailing list