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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Feb 24 08:56:38 EST 2009


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

Emmanuel Bernard commented on HV-123:
-------------------------------------

can you attach a test case as well (failing before the patch and working after). 
Generally speaking a fix is not a fix wo test cases, neither a new feature is.

> 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