JDK 8 RFR 7179567: JCK8 tests: api/java_net/URLClassLoader/index.html#Ctor3 failed with NPE

Mike Duigou mike.duigou at oracle.com
Thu Oct 3 23:53:54 UTC 2013


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




More information about the core-libs-dev mailing list