@ Override protected synchronized Class < ? > loadClass ( String name , boolean resolve ) throws ClassNotFoundException { synchronized ( getClassLoadingLock ( name ) ) { Class < ? > result = null ; if ( name == null || name . length ( ) == 0 ) return null ; result = findLoadedClass ( name ) ; if ( result == null ) { if ( name . regionMatches ( 0 , BootstrapChildFirstJarClassloader . KERNEL_BOOT_CLASS_PREFIX , 0 , BootstrapChildFirstJarClassloader . KERNEL_BOOT_PREFIX_LENGTH ) ) { result = super . loadClass ( name , resolve ) ; } else { try { // Try to load the class from this classpath result = findClass ( name ) ; } catch ( ClassNotFoundException cnfe ) { result = super . loadClass ( name , resolve ) ; } } } return result ; } }
Any changes must be made to both sources