< prev index next >

src/java.base/share/classes/sun/net/sdp/SdpSupport.java

Print this page
rev 55686 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs, mchung

*** 1,7 **** /* ! * Copyright (c) 2010, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 25,35 **** package sun.net.sdp; import java.io.IOException; import java.io.FileDescriptor; - import java.security.AccessController; import jdk.internal.access.SharedSecrets; import jdk.internal.access.JavaIOFileDescriptorAccess; import sun.security.action.GetPropertyAction; --- 25,34 ----
*** 73,86 **** private static native int create0() throws IOException; private static native void convert0(int fd) throws IOException; static { ! AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("net"); ! return null; ! } ! }); } } --- 72,79 ---- private static native int create0() throws IOException; private static native void convert0(int fd) throws IOException; static { ! jdk.internal.loader.BootLoader.loadLibrary("net"); } }
< prev index next >