mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-06 10:42:45 +00:00
Merge
This commit is contained in:
commit
4408cd9a08
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -458,7 +458,7 @@ public final class Layer {
|
||||
loader.initRemotePackageMap(cf, parents);
|
||||
Layer layer = new Layer(cf, parents, mn -> loader);
|
||||
return new Controller(layer);
|
||||
} catch (IllegalArgumentException e) {
|
||||
} catch (IllegalArgumentException | IllegalStateException e) {
|
||||
throw new LayerInstantiationException(e.getMessage());
|
||||
}
|
||||
}
|
||||
@ -526,7 +526,7 @@ public final class Layer {
|
||||
try {
|
||||
Layer layer = new Layer(cf, parents, pool::loaderFor);
|
||||
return new Controller(layer);
|
||||
} catch (IllegalArgumentException e) {
|
||||
} catch (IllegalArgumentException | IllegalStateException e) {
|
||||
throw new LayerInstantiationException(e.getMessage());
|
||||
}
|
||||
}
|
||||
@ -610,9 +610,8 @@ public final class Layer {
|
||||
try {
|
||||
Layer layer = new Layer(cf, parents, clf);
|
||||
return new Controller(layer);
|
||||
} catch (IllegalArgumentException iae) {
|
||||
// IAE is thrown by VM when defining the module fails
|
||||
throw new LayerInstantiationException(iae.getMessage());
|
||||
} catch (IllegalArgumentException | IllegalStateException e) {
|
||||
throw new LayerInstantiationException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user