자바 소스 코드를 AccessibleObject를

private static void setAccessible0(AccessibleObject obj, boolean flag)
        throws SecurityException
    {
        if (obj instanceof Constructor && flag == true) {
            Constructor<?> c = (Constructor<?>)obj;
            if (c.getDeclaringClass() == Class.class) {
                throw new SecurityException("Cannot make a java.lang.Class" +
                                            " constructor accessible");
            }
        }
        obj.override = flag;
    }

라인 (134)의 코드

게시 16 개 원래 기사 · 원의 찬양 3 · 조회수 4531

추천

출처blog.csdn.net/qq_29697901/article/details/88730920