changeset 9845:c9e4ddfdf58b

Merge
author asaha
date Wed, 02 Jul 2014 15:32:26 -0700
parents de5fceaae270 0c2393744b29
children 8e1df2d70380 5b80b4b22b4c
files .hgtags
diffstat 2 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/.hgtags	Wed Jul 02 15:22:37 2014 -0700
+++ b/.hgtags	Wed Jul 02 15:32:26 2014 -0700
@@ -306,3 +306,4 @@
 266302e9c31172984493404d5b223979315b59ac jdk8u20-b18
 38548d32c91cfa57b1d31eec0a5e79c936e86f11 jdk8u20-b19
 5c0406ee9e820140b5322db006baed199c165b4f jdk8u20-b20
+693025bbc45d683676fa78bb76201b665e0d8f2d jdk8u20-b21
--- a/src/share/classes/sun/awt/shell/ShellFolder.java	Wed Jul 02 15:22:37 2014 -0700
+++ b/src/share/classes/sun/awt/shell/ShellFolder.java	Wed Jul 02 15:32:26 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -33,8 +33,6 @@
 import java.util.*;
 import java.util.concurrent.Callable;
 
-import sun.reflect.misc.ReflectUtil;
-
 /**
  * @author Michael Martak
  * @since 1.4
@@ -201,16 +199,19 @@
 
     // Static
 
-    private static ShellFolderManager shellFolderManager;
+    private static final ShellFolderManager shellFolderManager;
 
-    private static Invoker invoker;
+    private static final Invoker invoker;
 
     static {
         String managerClassName = (String)Toolkit.getDefaultToolkit().
                                       getDesktopProperty("Shell.shellFolderManager");
         Class managerClass = null;
         try {
-            managerClass = ReflectUtil.forName(managerClassName);
+            managerClass = Class.forName(managerClassName, false, null);
+            if (!ShellFolderManager.class.isAssignableFrom(managerClass)) {
+                managerClass = null;
+            }
         // swallow the exceptions below and use default shell folder
         } catch(ClassNotFoundException e) {
         } catch(NullPointerException e) {