6894633: NetHooks should not require provider to be present (sol)
authoralanb
Sat, 24 Oct 2009 20:36:01 +0100
changeset 4166 4338343c40a9
parent 4165 7cd799c224da
child 4167 76f44f2d5d4d
child 4218 fcff3c891ba3
6894633: NetHooks should not require provider to be present (sol) Reviewed-by: chegar, jccollet
jdk/src/solaris/classes/sun/net/NetHooks.java
--- 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();