ModuleDescriptor descriptor = mref.descriptor();
String name = descriptor.name();
ClassLoader loader = clf.apply(name);
URI uri = mref.location().orElse(null);
Module m;
<BUG>if (loader == null && name.equals("java.base")) {
</BUG>
m = Object.class.getModule();
} else {
m = new Module(layer, loader, descriptor, uri);

ModuleDescriptor descriptor = mref.descriptor();
String name = descriptor.name();
ClassLoader loader = clf.apply(name);
URI uri = mref.location().orElse(null);
Module m;
if (loader == null && name.equals("java.base") && Layer.boot() == null) {
m = Object.class.getModule();
} else {
m = new Module(layer, loader, descriptor, uri);
