Dale Peakall commented on Improvement HV-606

Same behaviour with Hibernate 5.0.0.Alpha1:

HibernateBug.java
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.HibernateValidator;

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();

        validator.validateParameters(null, HibernateBug.class.getMethod("sayHi", String.class), new Object[] { null });
    }
}

There seems no reason why this couldn't work (Apache BVal does implement this).

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