commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject [lang] ClassUtils.toClass(Object[] array)
Date Tue, 02 Feb 2010 20:53:10 GMT
Currently it appears this method would throw a NPE if any element of  
array is null, without documenting this fact.  Our options would seem  
to be:

- document the NPE
- convert a null object to Object.class
- convert a null object to a null class

My inclination would be the third option, from the perspective of  
that the expectation would be a subsequent call to one of the  
ClassUtils.isAssignable(Class[]) variants.  Are there dissenting  


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message