changeset 9571:ebecdb0caf04

8035177: KSS: sun.awt.shell.ShellFolder Reviewed-by: alexsch, serb
author malenkov
date Thu, 17 Apr 2014 20:20:14 +0400
parents f70bbaa69ef3
children 441a988fee9e
files src/share/classes/sun/awt/shell/ShellFolder.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/awt/shell/ShellFolder.java	Thu Apr 17 17:00:46 2014 +0400
+++ b/src/share/classes/sun/awt/shell/ShellFolder.java	Thu Apr 17 20:20:14 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) {