summaryrefslogtreecommitdiff
path: root/java/io/File.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/io/File.java')
-rw-r--r--java/io/File.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/io/File.java b/java/io/File.java
index 4f670e147..080b52feb 100644
--- a/java/io/File.java
+++ b/java/io/File.java
@@ -700,11 +700,13 @@ public class File implements Serializable, Comparable<File>
*
* @return <code>true</code> if the file is hidden, <code>false</code>
* otherwise.
- *
+ * @throws SecurityException if a security manager exists and denies
+ * read access to this file.
* @since 1.2
*/
public boolean isHidden()
{
+ checkRead();
return VMFile.isHidden(path);
}