JDK 9 doc-api-only RFR of 6791812: (file spec) Incompatible File.lastModified() and setLastModified() for negative time

Brian Burkhalter brian.burkhalter at oracle.com
Fri May 19 19:12:22 UTC 2017


Hi Roger,

On May 19, 2017, at 12:08 PM, Roger Riggs <Roger.Riggs at Oracle.com> wrote:

> That looks ok.

Thanks.

> The ambiguity (of zero) can't easily be resolved, but I would be inclined,
> if the file exists and was created exactly at the epoch to bump the create time by 1.

At least that would not be an incompatible change unlike throwing a FileNotFoundException. I doubt a lot of files with the exact epoch timestamp are encountered much at all anyway. In any case either of those solutions would be for JDK 10.

Brian


More information about the core-libs-dev mailing list