Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Dev List »

[hibernate-dev] Wrong javadoc in Validator API

Hardy Ferentschik

2009-06-23

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I think there is another error in the Validator javadoc. Probably a
cut&paste error

  * @throws IllegalArgumentException if object is null, if propertyName
null, empty
  *                       or not a valid object property
  *                       or if null is passed to the varargs
groups
  * @throws ValidationException   if a non recoverable error happens
  *                       during the validation process
  */
 <T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String
propertyName, Object value, Class<?>... groups);

IllegalArgumentException if object is null seems to be wrong. Probably
should be "if beanType is null". null as value seems to be a valid case.

--Hardy
_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev
©2008 gg3721.com - Jax Systems, LLC, U.S.A.