# HG changeset patch # User alexsch # Date 1484749323 -10800 # Node ID 5df4efb223bd265a1db79dc22aa71d81cbd25688 # Parent cff6230190e58b82b5c40b6b7eb2ba9c70c445e1 8168537: Test fails with AccessControlException Reviewed-by: prr, serb diff -r cff6230190e5 -r 5df4efb223bd jdk/src/java.desktop/share/classes/sun/awt/shell/ShellFolder.java --- a/jdk/src/java.desktop/share/classes/sun/awt/shell/ShellFolder.java Wed Jan 18 18:14:50 2017 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/shell/ShellFolder.java Wed Jan 18 17:22:03 2017 +0300 @@ -32,7 +32,7 @@ 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 @@ 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);