if (!((VmClassLoader)vmClassLoader).isSystemClassLoader()) {
throw new IllegalArgumentException("vmClassLoader must be system classloader");
}
}
private static void checkArgs0(Object vmClassLoader) {
VmClassLoader vmcl = (VmClassLoader) vmClassLoader;
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkCreateClassLoader();
sm.checkPermission(new JNodePermission("wrapVmClassLoader"));
}
if (vmClassLoader == null) {
throw new IllegalArgumentException("vmClassLoader cannot be null");
}
if (vmcl.isSystemClassLoader()) {
throw new IllegalArgumentException("vmClassLoader must not be system classloader");
}
}