private Class < ? > loadClass ( final ClassLoader lastLoader , final String className ) { // XXX: this is overly complicated Class < ? > clazz ; if ( lastLoader != null ) { try { clazz = lastLoader . loadClass ( className ) ; if ( clazz != null ) { return clazz ; } } catch ( final Throwable ignore ) { // Ignore exception. } } try { clazz = LoaderUtil . loadClass ( className ) ; } catch ( final ClassNotFoundException | NoClassDefFoundError e ) { return loadClass ( className ) ; } catch ( final SecurityException e ) { return null ; } return clazz ; }
Loads classes not located via Reflection . getCallerClass .