diff options
| author | Roger Riggs <rriggs@openjdk.org> | 2018-06-27 09:36:34 -0400 |
|---|---|---|
| committer | Roger Riggs <rriggs@openjdk.org> | 2018-06-27 09:36:34 -0400 |
| commit | 4098f2560aaa0c805f4e8f293a38f878d70dd03e (patch) | |
| tree | 3a345b2e8bb7a97ce9779a37a0784cca750c5a15 /src/java.base/unix/classes/java/io/UnixFileSystem.java | |
| parent | cad47f4a03425276c8fc79bf84f1f6cdaf35dced (diff) | |
| download | openjdk-4098f2560aaa0c805f4e8f293a38f878d70dd03e.tar.gz openjdk-4098f2560aaa0c805f4e8f293a38f878d70dd03e.zip | |
8066709: Make some JDK system properties read only
Reviewed-by: lancea, sundar, bchristi, weijun, mchung, alanb, mullan
Diffstat (limited to 'src/java.base/unix/classes/java/io/UnixFileSystem.java')
| -rw-r--r-- | src/java.base/unix/classes/java/io/UnixFileSystem.java | 6 |
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(); } |
