} else if (superclass.equals(Object.class)) {
} else if (superclass != null && superclass.equals(Object.class)) {
    public void setSuperclass(Class superclass) {        if (superclass != null && superclass.isInterface()) {            setInterfaces(new Class[]{ superclass });        } else if (superclass.equals(Object.class)) {            // affects choice of ClassLoader            this.superclass = null;        } else {            this.superclass = superclass;        }    }