public static void checkProxyPackageAccess(Class<?> clazz){
  SecurityManager s=System.getSecurityManager();
  if (s != null) {
    if (Proxy.isProxyClass(clazz)) {
      for (      Class<?> intf : clazz.getInterfaces()) {
        checkPackageAccess(intf);
      }
    }
  }
}

public static void checkProxyPackageAccess ( Class < ? > clazz ) { SecurityManager s = System . getSecurityManager ( ) ; if ( s != null ) { if ( Proxy . isProxyClass ( clazz ) ) { for ( Class < ? > intf : clazz . getInterfaces ( ) ) { checkPackageAccess ( intf ) ; } } } }
check package access on the proxy interfaces that the given proxy class implements .
