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

Alaa Mohssen Nassef (JIRA) noreply at atlassian.com
Tue Feb 24 08:45:38 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alaa Mohssen Nassef updated HV-123:
-----------------------------------

    Attachment: fixing_meta_constaint_constructor_for_TYPE.txt

This is a patch that solves the problem

> 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: Alaa Mohssen Nassef
>             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