< prev index next >
src/java.base/aix/classes/sun/nio/fs/AixNativeDispatcher.java
Print this page
rev 55657 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs
*** 1,7 ****
/*
! * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013 SAP SE. 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
* under the terms of the GNU General Public License version 2 only, as
--- 1,7 ----
/*
! * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013 SAP SE. 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
* under the terms of the GNU General Public License version 2 only, as
*** 24,36 ****
* questions.
*/
package sun.nio.fs;
- import java.security.AccessController;
- import java.security.PrivilegedAction;
-
/**
* AIX specific system calls.
*/
class AixNativeDispatcher extends UnixNativeDispatcher {
--- 24,33 ----
*** 44,56 ****
// initialize
private static native void init();
static {
! AccessController.doPrivileged(new PrivilegedAction<Void>() {
! public Void run() {
! System.loadLibrary("nio");
! return null;
! }});
init();
}
}
--- 41,49 ----
// initialize
private static native void init();
static {
! jdk.internal.access.SharedSecrets.getJavaLangAccess().loadLibrary("nio");
init();
}
}
< prev index next >