changeset 49281:6712bdd93e4e

8198997: Cache normalized/resolved user.dir property Summary: Normalize cached user.dir property value in constructor (windows only) Reviewed-by: alanb
author bpb
date Thu, 22 Mar 2018 08:41:06 -0700
parents c2a3a2aa2475
children 271ef464fb3a
files src/java.base/windows/classes/java/io/WinNTFileSystem.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {