--- classpath/java/security/SecureClassLoader.java Sun Mar 24 21:12:19 2002 +++ patch/java/security/SecureClassLoader.java Tue Aug 6 12:43:09 2002 @@ -81,16 +81,14 @@ CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. - ProtectionDomain protectionDomain = - new ProtectionDomain(cs, getPermissions(cs)); - try + if (cs != null) { - return super.defineClass(name, b, off, len, protectionDomain); - } - catch (ClassFormatError cfe) - { - return null; - } + ProtectionDomain protectionDomain = + new ProtectionDomain(cs, getPermissions(cs)); + return super.defineClass(name, b, off, len, protectionDomain); + } + else + return super.defineClass(name, b, off, len); } /**