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

Mike Duigou mike.duigou at oracle.com
Fri Oct 4 00:14:51 UTC 2013


On Oct 3 2013, at 17:12 , Brian Burkhalter wrote:

> So if s/IAE/NPE/ then the rest appears within reason?

Yes. I would also changes the CNFE to an NPE.

I have no comment (and total ignorance) on the SecureClassLoader changes. I couldn't approve this change without more research.

Mike

> Brian
> 
> On Oct 3, 2013, at 4:53 PM, Mike Duigou wrote:
> 
>> 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:
>> 
>>> 
>>> 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.
> 




More information about the core-libs-dev mailing list