Mercurial > hg > openjdk > jdk7 > jdk
changeset 3993:dc74b14a8753
7034532: (fs) AssertionError when working directory is UNC
Reviewed-by: forax, mduigou
author | alanb |
---|---|
date | Sun, 10 Apr 2011 19:45:28 +0100 |
parents | 9c29dd06e138 |
children | 36e467e1e8b0 |
files | src/windows/classes/sun/nio/fs/WindowsFileSystem.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/classes/sun/nio/fs/WindowsFileSystem.java Fri Apr 08 02:00:09 2011 -0700 +++ b/src/windows/classes/sun/nio/fs/WindowsFileSystem.java Sun Apr 10 19:45:28 2011 +0100 @@ -56,8 +56,9 @@ // parse default directory and check it is absolute WindowsPathParser.Result result = WindowsPathParser.parse(dir); - if (result.type() != WindowsPathType.ABSOLUTE) - throw new AssertionError("Default directory must be absolute/non-UNC"); + if ((result.type() != WindowsPathType.ABSOLUTE) && + (result.type() != WindowsPathType.UNC)) + throw new AssertionError("Default directory is not an absolute path"); this.defaultDirectory = result.path(); this.defaultRoot = result.root();