8031394: (sl) Fix exception handling in ServiceLoader
authoralanb
Tue, 14 Jan 2014 11:55:26 +0000
changeset 23901 be16fac29d7f
parent 23900 fd98305f0d19
child 23902 694814411ba9
8031394: (sl) Fix exception handling in ServiceLoader Reviewed-by: ahgross, mchung, weijun
jdk/src/share/classes/java/util/ServiceLoader.java
--- a/jdk/src/share/classes/java/util/ServiceLoader.java	Wed Jan 15 11:53:54 2014 +0400
+++ b/jdk/src/share/classes/java/util/ServiceLoader.java	Tue Jan 14 11:55:26 2014 +0000
@@ -382,7 +382,7 @@
                 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