RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v4]

Daniel Jeliński djelinski at openjdk.org
Mon Sep 9 17:13:05 UTC 2024


On Fri, 6 Sep 2024 17:47:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and `isHidden` behave when the `File` represents a symbolic link.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8339574: Revised class level doc of File

Looks like a good improvement.

Does `File.exists` check the existence of the link target?

Can we copy this part of package-summary too?
> ...and operations on symbolic links are automatically redirected to the <em>target</em>

without it, it's not clear what `transparent` means.

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

PR Comment: https://git.openjdk.org/jdk/pull/20878#issuecomment-2338641576


More information about the core-libs-dev mailing list