changeset 6722:cd066f29f36f

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 16:51:59 +0400
parents dd5a285302c7
children 94533c087a66
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 16:04:14 2013 +0200
+++ b/src/share/classes/java/awt/datatransfer/DataFlavor.java	Wed Aug 07 16:51:59 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);
     }
 
     /*