-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b55
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018915 | 7u45 | Kurchi Subhra Hazra | P4 | Closed | Fixed | b01 |
JDK-2228924 | 7u40 | Kurchi Subhra Hazra | P4 | Closed | Fixed | b06 |
Checking file access on Windows is expensive because it requires reading the DACL and computing the effective access to the file. To bypass this, the checkAccess implementation on Windows has a fast path for the check read case but unfortunately Files.isReadable isn't using that fast path. This has been reported here:
http://mail.openjdk.java.net/pipermail/nio-dev/2012-May/001667.html
The workaround for the short is to replace Files.isReadbale(path) with path.getFileSystem().provider().checkAccess(path).
http://mail.openjdk.java.net/pipermail/nio-dev/2012-May/001667.html
The workaround for the short is to replace Files.isReadbale(path) with path.getFileSystem().provider().checkAccess(path).
- backported by
-
JDK-2228924 (fs) Files.isReadable slow on Windows
-
- Closed
-
-
JDK-8018915 (fs) Files.isReadable slow on Windows
-
- Closed
-