8173943: Change error reporting of LauncherHelper to include actual Error class name
Reviewed-by: alanb, ksrini
--- a/jdk/src/java.base/share/classes/sun/launcher/LauncherHelper.java Tue Feb 07 14:07:24 2017 -0500
+++ b/jdk/src/java.base/share/classes/sun/launcher/LauncherHelper.java Wed Feb 08 02:23:32 2017 +0530
@@ -591,8 +591,8 @@
c = Class.forName(m, cn);
}
} catch (LinkageError le) {
- abort(null, "java.launcher.module.error3",
- mainClass, m.getName(), le.getLocalizedMessage());
+ abort(null, "java.launcher.module.error3", mainClass, m.getName(),
+ le.getClass().getName() + ": " + le.getLocalizedMessage());
}
if (c == null) {
abort(null, "java.launcher.module.error2", mainClass, mainModule);
@@ -645,7 +645,8 @@
}
}
} catch (LinkageError le) {
- abort(le, "java.launcher.cls.error6", cn, le.getLocalizedMessage());
+ abort(le, "java.launcher.cls.error6", cn,
+ le.getClass().getName() + ": " + le.getLocalizedMessage());
}
return mainClass;
}