6267105: UIDefaults.getUIError dumps error message to System.err and also throws Error

Reviewed-by: prr, ssadetsky
This commit is contained in:
Shashidhara Veerabhadraiah 2017-06-13 14:32:24 +05:30 committed by Ajit Ghaisas
parent 5116cbb2bd
commit 5abad61670

View File

@ -756,9 +756,8 @@ public class UIDefaults extends Hashtable<Object,Object>
* @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();