changeset 43689:8ccdae71dba3

8173943: Change error reporting of LauncherHelper to include actual Error class name Reviewed-by: alanb, ksrini
author rpatil
date Wed, 08 Feb 2017 02:23:32 +0530
parents d967a949c384
children e8cdf30d90c4
files jdk/src/java.base/share/classes/sun/launcher/LauncherHelper.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }