mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8186736: Spec clarifications for IllegalArgumentException throwing - ModuleLayer.defineX methods
Reviewed-by: mchung
This commit is contained in:
parent
d960d2031c
commit
d26e4ff9b5
1 changed files with 12 additions and 12 deletions
|
@ -322,8 +322,8 @@ public final class ModuleLayer {
|
||||||
* @return The newly created layer
|
* @return The newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent of the given configuration is not the configuration
|
* If the given configuration has more than one parent or the parent
|
||||||
* for this layer
|
* of the configuration is not the configuration for this layer
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If the layer cannot be created for any of the reasons specified
|
* If the layer cannot be created for any of the reasons specified
|
||||||
* by the static {@code defineModulesWithOneLoader} method
|
* by the static {@code defineModulesWithOneLoader} method
|
||||||
|
@ -364,8 +364,8 @@ public final class ModuleLayer {
|
||||||
* @return The newly created layer
|
* @return The newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent of the given configuration is not the configuration
|
* If the given configuration has more than one parent or the parent
|
||||||
* for this layer
|
* of the configuration is not the configuration for this layer
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If the layer cannot be created for any of the reasons specified
|
* If the layer cannot be created for any of the reasons specified
|
||||||
* by the static {@code defineModulesWithManyLoaders} method
|
* by the static {@code defineModulesWithManyLoaders} method
|
||||||
|
@ -403,8 +403,8 @@ public final class ModuleLayer {
|
||||||
* @return The newly created layer
|
* @return The newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent of the given configuration is not the configuration
|
* If the given configuration has more than one parent or the parent
|
||||||
* for this layer
|
* of the configuration is not the configuration for this layer
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If the layer cannot be created for any of the reasons specified
|
* If the layer cannot be created for any of the reasons specified
|
||||||
* by the static {@code defineModules} method
|
* by the static {@code defineModules} method
|
||||||
|
@ -473,8 +473,8 @@ public final class ModuleLayer {
|
||||||
* @return A controller that controls the newly created layer
|
* @return A controller that controls the newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent configurations do not match the configuration of
|
* If the parent(s) of the given configuration do not match the
|
||||||
* the parent layers, including order
|
* configuration of the parent layers, including order
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If all modules cannot be defined to the same class loader for any
|
* If all modules cannot be defined to the same class loader for any
|
||||||
* of the reasons listed above
|
* of the reasons listed above
|
||||||
|
@ -546,8 +546,8 @@ public final class ModuleLayer {
|
||||||
* @return A controller that controls the newly created layer
|
* @return A controller that controls the newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent configurations do not match the configuration of
|
* If the parent(s) of the given configuration do not match the
|
||||||
* the parent layers, including order
|
* configuration of the parent layers, including order
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If the layer cannot be created because the configuration contains
|
* If the layer cannot be created because the configuration contains
|
||||||
* a module named "{@code java.base}" or a module contains a package
|
* a module named "{@code java.base}" or a module contains a package
|
||||||
|
@ -637,8 +637,8 @@ public final class ModuleLayer {
|
||||||
* @return A controller that controls the newly created layer
|
* @return A controller that controls the newly created layer
|
||||||
*
|
*
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the parent configurations do not match the configuration of
|
* If the parent(s) of the given configuration do not match the
|
||||||
* the parent layers, including order
|
* configuration of the parent layers, including order
|
||||||
* @throws LayerInstantiationException
|
* @throws LayerInstantiationException
|
||||||
* If creating the layer fails for any of the reasons listed above
|
* If creating the layer fails for any of the reasons listed above
|
||||||
* @throws SecurityException
|
* @throws SecurityException
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue