8198997: Cache normalized/resolved user.dir property

Normalize cached user.dir property value in constructor (windows only)

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2018-03-22 08:41:06 -07:00
parent 01509e5b5e
commit 917c015610

@ -50,7 +50,7 @@ class WinNTFileSystem extends FileSystem {
slash = props.getProperty("file.separator").charAt(0);
semicolon = props.getProperty("path.separator").charAt(0);
altSlash = (this.slash == '\\') ? '/' : '\\';
userDir = props.getProperty("user.dir");
userDir = normalize(props.getProperty("user.dir"));
}
private boolean isSlash(char c) {