Bug in File.getLastModified()
brian.burkhalter at oracle.com
Fri Mar 31 00:49:39 UTC 2017
As noted in , it looks like the specification  already dealt with the situation via the "possibly truncated" phrase:
"If the operation succeeds and no intervening operations on the file take place, then the next invocation of the lastModified() method will return the (possibly truncated) time argument that was passed to this method.”
Given the existence of a workaround and the possibility of causing subtle bugs (as noted by Stuart in the issue comments ), I would be inclined to resolve this as Not an Issue.
On Mar 30, 2017, at 5:47 AM, Seán Coffey <sean.coffey at oracle.com> wrote:
> I see that JDK-8177809  has been logged.
>  https://bugs.openjdk.java.net/browse/JDK-8177809
More information about the core-libs-dev