8198997: Cache normalized/resolved user.dir property
authorbpb
Thu, 22 Mar 2018 08:41:06 -0700
changeset 49281 6712bdd93e4e
parent 49280 c2a3a2aa2475
child 49282 271ef464fb3a
child 56344 2f3c34e2b691
8198997: Cache normalized/resolved user.dir property Summary: Normalize cached user.dir property value in constructor (windows only) Reviewed-by: alanb
src/java.base/windows/classes/java/io/WinNTFileSystem.java
--- 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) {