8035177: KSS: sun.awt.shell.ShellFolder
authormalenkov
Fri, 21 Mar 2014 21:40:52 +0400
changeset 23692 17d9d0dcf0c5
parent 23691 475a42c428e0
child 23693 0b8a5e89bac8
8035177: KSS: sun.awt.shell.ShellFolder Reviewed-by: alexsch, serb
jdk/src/share/classes/sun/awt/shell/ShellFolder.java
--- a/jdk/src/share/classes/sun/awt/shell/ShellFolder.java	Fri Mar 21 20:31:14 2014 +0400
+++ b/jdk/src/share/classes/sun/awt/shell/ShellFolder.java	Fri Mar 21 21:40:52 2014 +0400
@@ -33,6 +33,8 @@
 import java.util.*;
 import java.util.concurrent.Callable;
 
+import sun.reflect.misc.ReflectUtil;
+
 /**
  * @author Michael Martak
  * @since 1.4
@@ -208,10 +210,11 @@
                                       getDesktopProperty("Shell.shellFolderManager");
         Class managerClass = null;
         try {
-            managerClass = Class.forName(managerClassName);
+            managerClass = ReflectUtil.forName(managerClassName);
         // swallow the exceptions below and use default shell folder
         } catch(ClassNotFoundException e) {
         } catch(NullPointerException e) {
+        } catch(SecurityException e) {
         }
 
         if (managerClass == null) {