--- 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");