[hibernate-issues] [Hibernate-JIRA] Created: (HV-471) Group has to be an interface - Documentation or code bug

Vladislav Pernin (JIRA) noreply at atlassian.com
Fri May 6 05:19:59 EDT 2011


Group has to be an interface - Documentation or code bug
--------------------------------------------------------

                 Key: HV-471
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-471
             Project: Hibernate Validator
          Issue Type: Task
    Affects Versions: 4.1.0.Final
            Reporter: Vladislav Pernin


The documentation says :
The Bean Validation specification does not enforce that groups have to be interfaces. Non interface classes could be used as well, but we recommend to stick to interfaces.

But the code says something else :

javax.validation.ValidationException: A group has to be an interface. <class.name> is not.
	at org.hibernate.validator.engine.groups.GroupChainGenerator.getGroupChainFor(GroupChainGenerator.java:52)
	at org.hibernate.validator.engine.ValidatorImpl.determineGroupExecutionOrder(ValidatorImpl.java:176)
	at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:113)

Could it be related to HV-165 ?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list