src/java.base/macosx/classes/sun/nio/fs/UTIFileTypeDetector.java
changeset 55693 9a97b1393e72
parent 47216 71c04702a3d5
--- a/src/java.base/macosx/classes/sun/nio/fs/UTIFileTypeDetector.java	Wed Jul 17 11:43:38 2019 +0200
+++ b/src/java.base/macosx/classes/sun/nio/fs/UTIFileTypeDetector.java	Wed Jul 17 12:35:46 2019 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,8 +27,6 @@
 
 import java.io.IOException;
 import java.nio.file.Path;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
 
 /**
  * File type detector that uses a file extension to look up its MIME type
@@ -55,12 +53,6 @@
     }
 
     static {
-        AccessController.doPrivileged(new PrivilegedAction<>() {
-            @Override
-            public Void run() {
-                System.loadLibrary("nio");
-                return null;
-            }
-        });
+        jdk.internal.loader.BootLoader.loadLibrary("nio");
     }
 }