On Thu, 5 Sep 2024 21:05:38 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and 
> `isHidden` behave when the `File` represents a symbolic link.

If the `File` is a symbolic link, it looks after all that for most methods, the 
final target of link is used. The methods where the link itself is used are 
`isHidden()` (Unix only), and `delete()`. Given this, perhaps a better approach 
would be to add a statement in the class specification that links are followed 
unless a method specification states the contrary?

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

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

Reply via email to