changeset 42933:96d0c48f3ebc

8171074: Test api/javax_swing/UIManager/index.html\#Methods is failing Reviewed-by: ssadetsky, alexsch
author prr
date Wed, 14 Dec 2016 08:48:08 -0800
parents 91fb907a8732
children cd1c9fab50ca
files jdk/src/java.desktop/share/classes/javax/swing/UIManager.java
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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()));
         }
     }