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

Brian Burkhalter bpb at openjdk.org
Thu Feb 20 22:20:06 UTC 2025


On Thu, 20 Feb 2025 07:51:44 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8024695: Extend and clean up test
>
> test/jdk/java/io/File/EmptyPath.java line 260:
> 
>> 258:         assertFalse(f.canRead());
>> 259:         assertTrue(f.setReadable(true));
>> 260:         assertTrue(f.canRead());
> 
> Need try-finally in the setter tests to ensure that the directory's permissions are restored in the event that the test fails.

So changed in a3b7977.

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

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


More information about the core-libs-dev mailing list