changeset 8432:23476862c55b

8021969: The index_AccessAllowed jnlp can not load successfully with exception thrown in the log. Reviewed-by: art, skoivu
author malenkov
date Wed, 07 Aug 2013 14:37:22 +0400
parents ba7566de89c6
children db9539b0061d
files src/share/classes/java/awt/datatransfer/DataFlavor.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/datatransfer/DataFlavor.java	Tue Aug 06 10:33:42 2013 +0200
+++ b/src/share/classes/java/awt/datatransfer/DataFlavor.java	Wed Aug 07 14:37:22 2013 +0400
@@ -145,11 +145,7 @@
         } catch (SecurityException exception) {
             // ignore secured class loaders
         }
-        if (fallback != null) {
-            return Class.forName(className, true, fallback);
-        } else {
-            throw new ClassNotFoundException(className);
-        }
+        return Class.forName(className, true, fallback);
     }
 
     /*