提交 f5c51dde 编写于 作者: M malenkov

8035177: KSS: sun.awt.shell.ShellFolder

Reviewed-by: alexsch, serb
上级 1393fd81
......@@ -33,6 +33,8 @@ import java.io.FileNotFoundException;
import java.util.*;
import java.util.concurrent.Callable;
import sun.reflect.misc.ReflectUtil;
/**
* @author Michael Martak
* @since 1.4
......@@ -208,10 +210,11 @@ public abstract class ShellFolder extends File {
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册