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
Thu May 25 15:32:51 UTC 2017


This thread is now moved here:

http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-May/047885.html

Thanks,

Brian

On May 23, 2017, at 1:23 PM, Stuart Marks <stuart.marks at oracle.com> wrote:

> On 5/23/17 8:21 AM, Brian Burkhalter wrote:
>> So I guess this might be satisfy your and Stuart’s comments:
>> 
>> --- a/src/java.base/share/classes/java/io/File.java
>> +++ b/src/java.base/share/classes/java/io/File.java
>> @@ -932,7 +932,9 @@
>>     * @return  A <code>long</code> value representing the time the file was
>>     *          last modified, measured in milliseconds since the epoch
>>     *          (00:00:00 GMT, January 1, 1970), or <code>0L</code> if the
>> -     *          file does not exist or if an I/O error occurs
>> +     *          file does not exist or if an I/O error occurs; the value may
>> +     *          be negative indicating the number of milliseconds before the epoch
> 
> Yes, this looks great. Thanks.
> 
> s'marks
> 



More information about the core-libs-dev mailing list