< prev index next >

src/java.base/share/classes/jdk/internal/loader/ClassLoaders.java

Print this page

        

*** 130,149 **** } PlatformClassLoader(BootClassLoader parent) { super("platform", parent, null); } - - /** - * Called by the VM to support define package for AppCDS. - * - * Shared classes are returned in ClassLoader::findLoadedClass - * that bypass the defineClass call. - */ - private Package definePackage(String pn, Module module) { - return JLA.definePackage(this, pn, module); - } } /** * The application class loader that is a {@code BuiltinClassLoader} with * customizations to be compatible with long standing behavior. --- 130,139 ----
*** 194,213 **** ucp.addFile(path); } /** * Called by the VM to support define package for AppCDS - * - * Shared classes are returned in ClassLoader::findLoadedClass - * that bypass the defineClass call. - */ - private Package definePackage(String pn, Module module) { - return JLA.definePackage(this, pn, module); - } - - /** - * Called by the VM to support define package for AppCDS */ protected Package defineOrCheckPackage(String pn, Manifest man, URL url) { return super.defineOrCheckPackage(pn, man, url); } } --- 184,193 ----
< prev index next >