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;
|
return p;
|
||||||
} catch (Throwable x) {
|
} catch (Throwable x) {
|
||||||
fail(service,
|
fail(service,
|
||||||
"Provider " + cn + " could not be instantiated: " + x,
|
"Provider " + cn + " could not be instantiated",
|
||||||
x);
|
x);
|
||||||
}
|
}
|
||||||
throw new Error(); // This cannot happen
|
throw new Error(); // This cannot happen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user