mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 12:10:14 +00:00
8168537: Test fails with AccessControlException
Reviewed-by: prr, serb
This commit is contained in:
parent
48a9beedcc
commit
e346ebc19b
@ -32,7 +32,7 @@ import java.io.*;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
@ -244,7 +244,7 @@ public abstract class ShellFolder extends File {
|
||||
return (ShellFolder)file;
|
||||
}
|
||||
|
||||
if (!Files.exists(file.toPath(), LinkOption.NOFOLLOW_LINKS)) {
|
||||
if (!Files.exists(Paths.get(file.getPath()), LinkOption.NOFOLLOW_LINKS)) {
|
||||
throw new FileNotFoundException();
|
||||
}
|
||||
return shellFolderManager.createShellFolder(file);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user