mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
6828982: UIDefaults.getUI swallows original exception
Reviewed-by: kaddepalli, prr
This commit is contained in:
parent
aa4584af89
commit
2491c32fcd
2 changed files with 78 additions and 1 deletions
|
@ -32,6 +32,8 @@ import javax.swing.event.SwingPropertyChangeSupport;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.io.UncheckedIOException;
|
||||
import java.lang.reflect.*;
|
||||
import java.util.HashMap;
|
||||
|
@ -808,7 +810,11 @@ public class UIDefaults extends Hashtable<Object,Object>
|
|||
getUIError("static createUI() method not found in " + uiClass);
|
||||
}
|
||||
catch (Exception e) {
|
||||
getUIError("createUI() failed for " + target + " " + e);
|
||||
StringWriter w = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(w);
|
||||
e.printStackTrace(pw);
|
||||
pw.flush();
|
||||
getUIError("createUI() failed for " + target + "\n" + w);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue