diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | java/io/File.java | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,6 +1,13 @@ 2010-12-25 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 + * java/io/File.java: + (isHidden()): Add and document missing + security check. + +2010-12-25 Andrew John Hughes <ahughes@redhat.com> + + PR classpath/42390 * java/util/logging/LogManager.java: (addPropertyChangeListener(PropertyChangeListener)): Document fully. Throw NPE in a clearer way. Add 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); } |