RFR: 8361587: AssertionError in File.listFiles() when path is empty and -esa is enabled [v7]

Brian Burkhalter bpb at openjdk.org
Tue Jul 15 17:36:22 UTC 2025


On Tue, 15 Jul 2025 17:03:18 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Okay, but if I read this correctly then these methods will test mkdirs with a non-empty path as child will be "/child" or "\child".  In order to test mkdirs with an empty path then I think we need `assertFalse(f.mkdirs());`
>
>> [I]f I read this correctly then these methods will test mkdirs with a non-empty path as child will be "/child" or "\child".
> 
> Right. Yes, I agree this needs modification. Also, I don't trust the stability of the `mkdirs` sub-test on Windows as conceivably it could fail with no permission to create a folder `C:\folder`.

Changed in 8272cdb.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26224#discussion_r2208149145


More information about the core-libs-dev mailing list