8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing
Reviewed-by: ssadetsky, alexsch
This commit is contained in:
parent
bcfb267efe
commit
d845c9092c
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user