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
Tue May 23 15:21:56 UTC 2017


Hi Roger,

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

Thanks,

Brian

On May 23, 2017, at 7:03 AM, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> I don't think you need to mention the absolute value.
> 
> +     *          file does not exist or if an I/O error occurs; the value may
> +     *          be negative indicating the number of milliseconds before the epoch



More information about the core-libs-dev mailing list