summaryrefslogtreecommitdiff
path: root/src/java.base/unix/classes/java/io/UnixFileSystem.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java.base/unix/classes/java/io/UnixFileSystem.java')
-rw-r--r--src/java.base/unix/classes/java/io/UnixFileSystem.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java.base/unix/classes/java/io/UnixFileSystem.java b/src/java.base/unix/classes/java/io/UnixFileSystem.java
index edcc1d3d20d..23d3e52bad8 100644
--- a/src/java.base/unix/classes/java/io/UnixFileSystem.java
+++ b/src/java.base/unix/classes/java/io/UnixFileSystem.java
@@ -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 @@ class UnixFileSystem extends FileSystem {
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();
}