Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Handle UnauthorizedAccessException
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Jul 7, 2022
1 parent eda0990 commit 59d30e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ikvm/openjdk/sun/nio/fs/NetFileSystemProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ static DosFileAttributesImpl readAttributesImpl(String path) throws IOException
if (false) throw new cli.System.ArgumentException();
if (false) throw new cli.System.IO.FileNotFoundException();
if (false) throw new cli.System.IO.IOException();
if (false) throw new cli.System.IO.UnauthorizedAccessException();
if (false) throw new cli.System.UnauthorizedAccessException();
FileInfo info = new FileInfo(path);
// We have to rely on the (undocumented) fact that FileInfo.Attributes returns -1
// when the path does not exist. We need this to work for both files and directories
Expand Down

0 comments on commit 59d30e1

Please sign in to comment.