src/share/classes/java/lang/SecurityManager.java

Print this page

        

*** 398,408 **** * @see java.lang.ClassLoader#getSystemClassLoader() getSystemClassLoader * @see #checkPermission(java.security.Permission) checkPermission */ @Deprecated protected Class<?> currentLoadedClass() { ! Class c = currentLoadedClass0(); if ((c != null) && hasAllPermission()) c = null; return c; } --- 398,408 ---- * @see java.lang.ClassLoader#getSystemClassLoader() getSystemClassLoader * @see #checkPermission(java.security.Permission) checkPermission */ @Deprecated protected Class<?> currentLoadedClass() { ! Class<?> c = currentLoadedClass0(); if ((c != null) && hasAllPermission()) c = null; return c; }
*** 1713,1723 **** */ public void checkSecurityAccess(String target) { checkPermission(new SecurityPermission(target)); } ! private native Class currentLoadedClass0(); /** * Returns the thread group into which to instantiate any new * thread being created at the time this is being called. * By default, it returns the thread group of the current --- 1713,1723 ---- */ public void checkSecurityAccess(String target) { checkPermission(new SecurityPermission(target)); } ! private native Class<?> currentLoadedClass0(); /** * Returns the thread group into which to instantiate any new * thread being created at the time this is being called. * By default, it returns the thread group of the current