RFR: 8361587: AssertionError in File.listFiles() when path is empty and -esa is enabled [v2]
Brian Burkhalter
bpb at openjdk.org
Wed Jul 9 18:35:54 UTC 2025
On Wed, 9 Jul 2025 18:22:51 GMT, Johannes Döbler <duke at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8361587: Clean up listFiles sub-test per suggestions
>
> test/jdk/java/io/File/EmptyPath.java line 212:
>
>> 210: File[] files = f.listFiles();
>> 211: for (File file : files)
>> 212: assertTrue(f.toString().indexOf(File.separatorChar) == -1);
>
> Suggestion: `assertEquals(-1, f.toString().indexOf(File.separatorChar));`
So changed in 76b4439.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26224#discussion_r2195723588
More information about the core-libs-dev
mailing list