8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing

Reviewed-by: ssadetsky, alexsch
This commit is contained in:
Phil Race 2016-12-14 08:48:08 -08:00
parent bcfb267efe
commit d845c9092c

View File

@ -629,16 +629,7 @@ public class UIManager implements Serializable
}
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()));
}
}