关于ClassLoader 和Class的俩个记录

public class ZFBCheckAccountTask extends TaskThread {
断点
    @CallerSensitive
    public ClassLoader getClassLoader() {
        ClassLoader cl = getClassLoader0();
        if (cl == null)
            return null;
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            ClassLoader.checkClassLoaderPermission(cl, Reflection.getCallerClass());
        }
        return cl;
    }

  断点查看classloader 和class

 

 

posted @ 2020-11-25 13:48  张艳涛&java  阅读(97)  评论(0编辑  收藏  举报