< prev index next >
src/java.base/share/classes/java/lang/ModuleLayer.java
Print this page
*** 820,830 ****
private volatile Set<Module> modules;
/**
* Returns the module with the given name in this layer, or if not in this
! * layer, the {@linkplain #parents parent} layers. Finding a module in
* parent layers is equivalent to invoking {@code findModule} on each
* parent, in search order, until the module is found or all parents have
* been searched. In a <em>tree of layers</em> then this is equivalent to
* a depth-first search.
*
--- 820,830 ----
private volatile Set<Module> modules;
/**
* Returns the module with the given name in this layer, or if not in this
! * layer, the {@linkplain #parents() parent} layers. Finding a module in
* parent layers is equivalent to invoking {@code findModule} on each
* parent, in search order, until the module is found or all parents have
* been searched. In a <em>tree of layers</em> then this is equivalent to
* a depth-first search.
*
*** 852,862 ****
}
/**
* Returns the {@code ClassLoader} for the module with the given name. If
! * a module of the given name is not in this layer then the {@link #parents
* parent} layers are searched in the manner specified by {@link
* #findModule(String) findModule}.
*
* <p> If there is a security manager then its {@code checkPermission}
* method is called with a {@code RuntimePermission("getClassLoader")}
--- 852,862 ----
}
/**
* Returns the {@code ClassLoader} for the module with the given name. If
! * a module of the given name is not in this layer then the {@link #parents()
* parent} layers are searched in the manner specified by {@link
* #findModule(String) findModule}.
*
* <p> If there is a security manager then its {@code checkPermission}
* method is called with a {@code RuntimePermission("getClassLoader")}
< prev index next >