RFR: 8024695: new File("").exists() returns false whereas it is the current working directory
Brian Burkhalter
bpb at openjdk.org
Thu Dec 19 17:20:35 UTC 2024
On Thu, 19 Dec 2024 17:11:51 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> [...] can you establish if this has always been the case and on all platforms?
It is the same on macOS and presumably other Unix variants where the `access` system call will always fail for `""`. I have not checked older versions.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22821#issuecomment-2555212818
More information about the core-libs-dev
mailing list