diff options
author | jfrijters <jfrijters> | 2012-11-01 15:19:43 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2012-11-01 15:19:43 +0400 |
commit | 3af783e713021013e9bab1205e973b209bfbff15 (patch) | |
tree | a7321105dbe21877558e1b80d9e8039bbace96ea /openjdk/java | |
parent | a68002325d56e39d469c2d56c59b2be8e3d5816c (diff) |
Changed FileNotFoundException message in the case of an access denied to match the JDK message. JRuby depends on this.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/io/FileDescriptor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openjdk/java/io/FileDescriptor.java b/openjdk/java/io/FileDescriptor.java index bb0cb003..af970b4c 100644 --- a/openjdk/java/io/FileDescriptor.java +++ b/openjdk/java/io/FileDescriptor.java @@ -325,7 +325,8 @@ public final class FileDescriptor { catch (cli.System.UnauthorizedAccessException x3) { // this is caused by "name" being a directory instead of a file - throw new FileNotFoundException(x3.getMessage()); + // or by name being a read-only file + throw new FileNotFoundException(name + " (Access is denied)"); } catch (cli.System.ArgumentException x4) { |