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

Alan Bateman alanb at openjdk.org
Fri Feb 21 17:20:54 UTC 2025


On Fri, 21 Feb 2025 17:16:16 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> My comment is about the tests getTotalSpace/getFreeSpace/getUsableSpace as they check that the results are close to the FIleStore equivalent. My concern is how stable this is with other tests running in other agent VMs as the file usage will change while the test runs.
>
> Understood. Do you think that checking for a positive value is sufficient?

That should be okay here as this test is about empty paths, there are other tests for file space (and as you know, they've been troubleshooting over the years so just trying to avoid extending the noise to this test).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22821#discussion_r1965905251


More information about the core-libs-dev mailing list