src/java.base/linux/classes/sun/nio/fs/LinuxFileSystemProvider.java
changeset 50817 fa1e04811ff6
parent 49285 4d2e3f5abb48
child 52727 396dfb0e8ba5
--- a/src/java.base/linux/classes/sun/nio/fs/LinuxFileSystemProvider.java	Wed Jun 27 09:52:23 2018 +0200
+++ b/src/java.base/linux/classes/sun/nio/fs/LinuxFileSystemProvider.java	Wed Jun 27 09:36:34 2018 -0400
@@ -29,8 +29,8 @@
 import java.nio.file.attribute.*;
 import java.nio.file.spi.FileTypeDetector;
 import java.io.IOException;
-import java.security.AccessController;
-import sun.security.action.GetPropertyAction;
+
+import jdk.internal.util.StaticProperty;
 
 /**
  * Linux implementation of FileSystemProvider
@@ -102,7 +102,7 @@
 
     @Override
     FileTypeDetector getFileTypeDetector() {
-        String userHome = GetPropertyAction.privilegedGetProperty("user.home");
+        String userHome = StaticProperty.userHome();
         Path userMimeTypes = Path.of(userHome, ".mime.types");
         Path etcMimeTypes = Path.of("/etc/mime.types");