[hibernate-issues] [Hibernate-JIRA] Created: (HV-304) Class Validation Constraints Cause Duplicate ConstraintViolations

Marvin Addison (JIRA) noreply at atlassian.com
Wed Apr 7 13:05:42 EDT 2010


Class Validation Constraints Cause Duplicate ConstraintViolations
-----------------------------------------------------------------

                 Key: HV-304
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-304
             Project: Hibernate Validator
          Issue Type: Bug
          Components: engine
    Affects Versions: 4.1.0.Beta1
         Environment: java 1.5.0_16-b02
            Reporter: Marvin Addison
            Assignee: Hardy Ferentschik


When a custom constraint applied to a class is evaluated by Hibernate Validator, duplicate validation errors are produced.  My investigation points to ValidatorImpl#validateConstraint() path evaluation as the root cause.  In particular it appears that it has improper handling of constraints that have null paths, which would be the case for a constraint applied to a class.

-- 
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