changeset 17763:e582ee8842d6

6267105: UIDefaults.getUIError dumps error message to System.err and also throws Error. Reviewed-by: prr, ssadetsky Contributed-by: shashidhara.veerabhadraiah@oracle.com
author aghaisas
date Tue, 13 Jun 2017 14:32:24 +0530
parents 7d3e0c5b5e25
children 905ba4e83b0c
files src/java.desktop/share/classes/javax/swing/UIDefaults.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/javax/swing/UIDefaults.java	Wed Jun 07 16:43:18 2017 +0530
+++ b/src/java.desktop/share/classes/javax/swing/UIDefaults.java	Tue Jun 13 14:32:24 2017 +0530
@@ -756,9 +756,8 @@
      * @see #getUI
      */
     protected void getUIError(String msg) {
-        System.err.println("UIDefaults.getUI() failed: " + msg);
         try {
-            throw new Error();
+            throw new Error(msg);
         }
         catch (Throwable e) {
             e.printStackTrace();