src/java.base/unix/classes/java/io/UnixFileSystem.java
changeset 50817 fa1e04811ff6
parent 48927 847a988152b8
child 51517 edcf0d527658
--- a/src/java.base/unix/classes/java/io/UnixFileSystem.java	Wed Jun 27 09:52:23 2018 +0200
+++ b/src/java.base/unix/classes/java/io/UnixFileSystem.java	Wed Jun 27 09:36:34 2018 -0400
@@ -26,6 +26,8 @@
 package java.io;
 
 import java.util.Properties;
+
+import jdk.internal.util.StaticProperty;
 import sun.security.action.GetPropertyAction;
 
 
@@ -40,8 +42,8 @@
         Properties props = GetPropertyAction.privilegedGetProperties();
         slash = props.getProperty("file.separator").charAt(0);
         colon = props.getProperty("path.separator").charAt(0);
-        javaHome = props.getProperty("java.home");
-        userDir = props.getProperty("user.dir");
+        javaHome = StaticProperty.javaHome();
+        userDir = StaticProperty.userDir();
     }