I would normally suggest throwing NPE rather than other exceptions for detected 
invalid nulls. You can also then use Objects.requireNonNull()

Mike

On Oct 3 2013, at 16:10 , Brian Burkhalter wrote:

> Please review and comment at your convenience.
> 
> Issue:        https://bugs.openjdk.java.net/browse/JDK-7179567
> Webrev:       http://cr.openjdk.java.net/~bpb/7179567/
> 
> Summary
> * Document and throw IAE from URLClassLoader constructors.
> * Throw ClassNotFoundException if null is passed to findClass method of a 
> ClassLoader.
> * Clarify specification of SecureClassLoader.getPermissions.
> 
> This change would require an approved CCC request and JCK test changes.
> 
> Thanks,
> 
> Brian

Reply via email to