changeset 4166:4338343c40a9

6894633: NetHooks should not require provider to be present (sol) Reviewed-by: chegar, jccollet
author alanb
date Sat, 24 Oct 2009 20:36:01 +0100
parents 7cd799c224da
children 76f44f2d5d4d fcff3c891ba3
files jdk/src/solaris/classes/sun/net/NetHooks.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/solaris/classes/sun/net/NetHooks.java	Fri Oct 23 11:18:17 2009 -0700
+++ b/jdk/src/solaris/classes/sun/net/NetHooks.java	Sat Oct 24 20:36:01 2009 +0100
@@ -81,7 +81,7 @@
                     try {
                         c = (Class<Provider>)Class.forName(cn, true, null);
                     } catch (ClassNotFoundException x) {
-                        throw new AssertionError(x);
+                        return null;
                     }
                     try {
                         return c.newInstance();