On Thu, 19 Dec 2024 00:36:44 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

> Update the specification of `java.io.File.exists()` to match its behavior, 
> which seems correct in the context of how the empty abstract pathname is 
> documented elsewhere in the class.

This is surprising, can you establish if this has always been the case and on 
all platforms? Part of the surprise is that if you use 
getAbsoluteFile().exists() then it will return true. Also the new file API, the 
Path.of("") does exist (if the current directory exists).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22821#issuecomment-2555180785

Reply via email to