changeset 6732:480b85c53071

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 675b9971b25b
children f39399baf367 e87be44883ad
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 07:34:07 2013 -0700
+++ 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);
     }
 
     /*