RFR: 8024695: new File("").exists() returns false whereas it is the current working directory

Brian Burkhalter bpb at openjdk.org
Thu Dec 19 17:23:35 UTC 2024


On Thu, 19 Dec 2024 17:11:51 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Path.of("") does exist


jshell> Files.exists(Path.of(""))
$1 ==> true

Indeed that is a contradiction.

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

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


More information about the core-libs-dev mailing list