[hibernate-issues] [Hibernate-JIRA] Created: (HV-243) ConstraintValidator instances are abusively cached independently of their corresponding constraint declaration

Emmanuel Bernard (JIRA) noreply at atlassian.com
Wed Sep 30 12:32:50 EDT 2009


ConstraintValidator instances are abusively cached independently of their corresponding constraint declaration
--------------------------------------------------------------------------------------------------------------

                 Key: HV-243
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-243
             Project: Hibernate Validator
          Issue Type: Bug
          Components: engine
    Affects Versions: 4.0.0.CR1
            Reporter: Emmanuel Bernard


@Size(max=20)
@Constraint
@interface A {
}

@Size(max=10)
@Constraint
@interface B {
}

@A @B
@Constraint
@interface C {
}

The same constraint validator instance is used for @Size(max=20) and @Size(max=10) => leading to erroneous reports.

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