changeset 1800:2a0ed9d89fb0

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 80102c165e09
children 244a6868b440 20e896233903
files src/solaris/classes/sun/net/NetHooks.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/net/NetHooks.java	Fri Oct 23 11:18:17 2009 -0700
+++ b/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();