8231174: (fs) FileTime should have 100ns resolution (win)
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Sep 24 20:19:08 UTC 2019
> On Sep 23, 2019, at 2:28 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
>> On Sep 23, 2019, at 1:14 PM, Alan Bateman <Alan.Bateman at oracle.com <mailto:Alan.Bateman at oracle.com>> wrote:
>>
>> On 23/09/2019 20:13, Brian Burkhalter wrote:
>>>
>>> I think that this version [1,2] should address the concern.
>>>
>> Partly, there is also this adjustment that could overflow:
>> time += WINDOWS_EPOCH_IN_100NS;
>
> I thought of that but didn’t think it could happen or is very improbable. This [1] should account for it as well.
Here’s one more iteration with (hopefully) simplified versions of toFileTime() and toWindowsTime().
http://cr.openjdk.java.net/~bpb/8231174/webrev.04/
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190924/cca9428e/attachment.html>
More information about the nio-dev
mailing list