JDK 10 RFR of 8180767: A return value of zero from java.io.File#lastModified() is ambiguous

John Rose john.r.rose at oracle.com
Wed May 24 20:11:42 UTC 2017


On May 24, 2017, at 2:02 AM, Remi Forax <forax at univ-mlv.fr> wrote:
> 
> As a meta-comment, we should deprecate java.io.File (with no for removal),
> java.nio.file.Path is a nice replacement so java.io.File should be used only for dealing with legacy code. 

This seems right to me.  As a casual user of core-libs I would be
less likely to use File in new code, and take a second to look for the
better replacement, if it were in fact solidly deprecated.

Could someone file a bug/rfe to follow this up?  Debate about the ultimate
worthiness of File could then be attached to the bug.

— John



More information about the core-libs-dev mailing list