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

Brian Burkhalter bpb at openjdk.org
Fri Feb 21 17:20:53 UTC 2025


On Fri, 21 Feb 2025 17:14:24 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> I don't recall asserting any relationship between the allocated and free space. Initially I had this simply checking that each returned space value was positive. Do you think that that is enough?
>
> 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?

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

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


More information about the core-libs-dev mailing list