[hibernate-issues] [Hibernate-JIRA] Commented: (HV-218) Validator implementation resolution is based on the returned value (at runtime) instead of the returned type

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Aug 27 13:52:15 EDT 2009


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

Emmanuel Bernard commented on HV-218:
-------------------------------------

ValidatorResolutionTest#testAmbigiousValidatorResolution

This test should not be ambiguous because Bar is the returned type of getBar()

What would be ambiguous would be to get Bar implement Serializable and Baz
and having validators for both Serializable and Baz (and not Bar). 

> Validator implementation resolution is based on the returned value (at runtime) instead of the returned type
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HV-218
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-218
>             Project: Hibernate Validator
>          Issue Type: Sub-task
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>


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