8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing
Reviewed-by: ssadetsky, alexsch
--- a/jdk/src/java.desktop/share/classes/javax/swing/UIManager.java Tue Dec 13 12:02:37 2016 -0800
+++ b/jdk/src/java.desktop/share/classes/javax/swing/UIManager.java Wed Dec 14 08:48:08 2016 -0800
@@ -629,16 +629,7 @@
}
else {
Class<?> lnfClass = SwingUtilities.loadSystemClass(className);
- try {
- LookAndFeel laf =
- (LookAndFeel)lnfClass.newInstance();
- setLookAndFeel(laf);
- } catch (ReflectiveOperationException | IllegalArgumentException e) {
- InstantiationException ex =
- new InstantiationException("Wrapped Exception");
- ex.initCause(e);
- throw ex;
- }
+ setLookAndFeel((LookAndFeel)(lnfClass.newInstance()));
}
}