8198997: Cache normalized/resolved user.dir property
Summary: Normalize cached user.dir property value in constructor (windows only)
Reviewed-by: alanb
--- a/src/java.base/windows/classes/java/io/WinNTFileSystem.java Thu Mar 22 15:28:33 2018 +0100
+++ b/src/java.base/windows/classes/java/io/WinNTFileSystem.java Thu Mar 22 08:41:06 2018 -0700
@@ -50,7 +50,7 @@
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) {