8031394: (sl) Fix exception handling in ServiceLoader
Reviewed-by: ahgross, mchung, weijun
This commit is contained in:
parent
cf8f2bc48d
commit
b921c9e927
@ -382,7 +382,7 @@ public final class ServiceLoader<S>
|
||||
return p;
|
||||
} catch (Throwable x) {
|
||||
fail(service,
|
||||
"Provider " + cn + " could not be instantiated: " + x,
|
||||
"Provider " + cn + " could not be instantiated",
|
||||
x);
|
||||
}
|
||||
throw new Error(); // This cannot happen
|
||||
|
Loading…
Reference in New Issue
Block a user