8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing
authorprr
Wed, 14 Dec 2016 08:48:08 -0800
changeset 42933 96d0c48f3ebc
parent 42749 91fb907a8732
child 42934 cd1c9fab50ca
8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing Reviewed-by: ssadetsky, alexsch
jdk/src/java.desktop/share/classes/javax/swing/UIManager.java
--- 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()));
         }
     }