< prev index next >
jdk/src/java.base/share/classes/jdk/internal/loader/BuiltinClassLoader.java
Print this page
*** 143,155 ****
/**
* Create a new instance.
*/
! BuiltinClassLoader(BuiltinClassLoader parent, URLClassPath ucp) {
// ensure getParent() returns null when the parent is the boot loader
! super(parent == null || parent == ClassLoaders.bootLoader() ? null : parent);
this.parent = parent;
this.ucp = ucp;
this.nameToModule = new ConcurrentHashMap<>();
--- 143,155 ----
/**
* Create a new instance.
*/
! BuiltinClassLoader(String name, BuiltinClassLoader parent, URLClassPath ucp) {
// ensure getParent() returns null when the parent is the boot loader
! super(name, parent == null || parent == ClassLoaders.bootLoader() ? null : parent);
this.parent = parent;
this.ucp = ucp;
this.nameToModule = new ConcurrentHashMap<>();
< prev index next >