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

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


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

Hardy Ferentschik resolved HV-123.
----------------------------------

    Resolution: Fixed

> 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