[hibernate-issues] [Hibernate-JIRA] Commented: (HV-123) Wrong elementType in MetaConstraint constructor

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Feb 24 09:00:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32493#action_32493 ] 

Hardy Ferentschik commented on HV-123:
--------------------------------------

right. A test case is always good. In this case I have now a testcase for class level validator, but generally the more the merrier. 

> Wrong elementType in MetaConstraint constructor
> -----------------------------------------------
>
>                 Key: HV-123
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-123
>             Project: Hibernate Validator
>          Issue Type: Bug
>    Affects Versions: 4.0.0.Alpha1
>            Reporter: Alaa Mohssen Nassef
>            Assignee: Hardy Ferentschik
>             Fix For: 4.0.0.Alpha2
>
>         Attachments: fixing_meta_constaint_constructor_for_TYPE.txt
>
>
> In the first MetaConstraint constructor, which takes "Type t", the elementType passed to the full constructor is ElementType.FIELD and not ElementType.TYPE. This causes the getValue() method to return null for constraints that annotate classes.

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