Issue Type: Improvement Improvement
Affects Versions: 4.3.0.Final, 4.2.0.Final
Assignee: Unassigned
Components: engine
Created: 31/Jul/12 10:35 AM
Description:
HibernateBug.java
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.HibernateValidator;
import org.hibernate.validator.method.MethodValidator;

public class HibernateBug {
    public static String sayHi(@NotNull String name) {
        return "Hello " + name;
    }

    public static void main(String[] args) throws Exception {
        Validator validator = Validation.byProvider(HibernateValidator.class)
            .configure()
            .buildValidatorFactory()
            .getValidator();

        MethodValidator mv = validator.unwrap(MethodValidator.class);
        mv.validateAllParameters(null, HibernateBug.class.getMethod("sayHi", String.class), new Object[] { null });
    }
}

This throws IllegalArgumentException: HV000116: The object to be validated must not be null.

Project: Hibernate Validator
Priority: Major Major
Reporter: Dale Peakall
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira