changeset 9734:76a17befc935

8031394: (sl) Fix exception handling in ServiceLoader Reviewed-by: ahgross, mchung, weijun
author alanb
date Tue, 14 Jan 2014 11:55:26 +0000
parents aee0fdff54d4
children 2ef2b3ed42a1
files src/share/classes/java/util/ServiceLoader.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/ServiceLoader.java	Wed Jan 15 11:53:54 2014 +0400
+++ b/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