protected Class < ? > loadClass ( String className , boolean resolve ) throws ClassNotFoundException { // Revert to standard rules if ( standard ) return super . loadClass ( className , resolve ) ; // Ask the parent Class < ? > clazz = null ; try { clazz = parent . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { // Not found in parent, // maybe it is a proxy registered against this classloader? clazz = findLoadedClass ( className ) ; if ( clazz == null ) throw e ; } // Link the class if ( resolve ) resolveClass ( clazz ) ; return clazz ; }
Load a class by asking the parent