< prev index next >

src/java.base/share/classes/java/net/URLClassLoader.java

Print this page
rev 15821 : 8165271: Fix use of reflection to gain access to private fields
Reviewed-by:

*** 767,779 **** --- 767,785 ---- } static { SharedSecrets.setJavaNetAccess( new JavaNetAccess() { + @Override public URLClassPath getURLClassPath(URLClassLoader u) { return u.ucp; } + + @Override + public AccessControlContext getAccessControlContext(URLClassLoader u) { + return u.acc; + } } ); ClassLoader.registerAsParallelCapable(); } }
< prev index next >