[hibernate-issues] [Hibernate-JIRA] Commented: (HV-234) make sure int[] is converted in Integer[] when needed by a constraintValidator call

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Sep 28 11:06:50 EDT 2009


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

Hardy Ferentschik commented on HV-234:
--------------------------------------

Not sure whether I like this. This is not really required by the spec, right? You would like to see this as a Hibernate Validator feature?

Autoboxing for primitive arrays is not even specified in Java afaik. Also, if I create a Integer[] array from a int[] I am not even validating the actual value anymore. 

> make sure int[] is converted in Integer[] when needed by a constraintValidator call
> -----------------------------------------------------------------------------------
>
>                 Key: HV-234
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-234
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.0.0.CR1
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>             Fix For: 4.0.0.GA
>
>
> int[] getSizes();
> class MyCV implements ConstraintValidator<Size, Integer[]> {}
> => should work.

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