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

Reviewed-by: djelinski, alanb
This commit is contained in:
Brian Burkhalter 2024-09-17 15:50:32 +00:00
parent f87701635f
commit 64e3a9ee91
4 changed files with 63 additions and 20 deletions

View file

@ -85,7 +85,9 @@ public class FileInputStream extends InputStream
* Creates a {@code FileInputStream} by
* opening a connection to an actual file,
* the file named by the path name {@code name}
* in the file system. A new {@code FileDescriptor}
* in the file system. {@linkplain java.nio.file##links Symbolic links}
* are automatically redirected to the <i>target</i> of the link.
* A new {@code FileDescriptor}
* object is created to represent this file
* connection.
* <p>
@ -117,6 +119,8 @@ public class FileInputStream extends InputStream
* opening a connection to an actual file,
* the file named by the {@code File}
* object {@code file} in the file system.
* {@linkplain java.nio.file##links Symbolic links}
* are automatically redirected to the <i>target</i> of the link.
* A new {@code FileDescriptor} object
* is created to represent this file connection.
* <p>