8031394: (sl) Fix exception handling in ServiceLoader

Reviewed-by: ahgross, mchung, weijun
This commit is contained in:
Alan Bateman 2014-01-14 11:55:26 +00:00
parent cf8f2bc48d
commit b921c9e927

View File

@ -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