6267105: UIDefaults.getUIError dumps error message to System.err and also throws Error.
Reviewed-by: prr, ssadetsky
Contributed-by: shashidhara.veerabhadraiah@oracle.com
--- a/jdk/src/java.desktop/share/classes/javax/swing/UIDefaults.java Wed Jun 07 16:43:18 2017 +0530
+++ b/jdk/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();