[hibernate-issues] [Hibernate-JIRA] Updated: (HV-291) ConstraintViolation not Serializable for custom constraint

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Mar 8 16:23:47 EST 2010


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

Hardy Ferentschik updated HV-291:
---------------------------------

    Component/s: engine

> ConstraintViolation not Serializable for custom constraint
> ----------------------------------------------------------
>
>                 Key: HV-291
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-291
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.0.2.GA
>            Reporter: Henno Vermeulen
>            Assignee: Hardy Ferentschik
>             Fix For: 4.1.0-Beta-1
>
>         Attachments: CustomConstraintNotSerializable.java
>
>
> When using the simple @Email constraint found on the blog http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/, I discovered that a ConstraintViolation on this constraint is not Serializable when trying to Serialize it to a remote client.
> The cause seems to be that org.hibernate.validator.util.annotationfactory.AnnotationProxy is not Serializable.
> Serializing a constraint violation on org.hibernate.validator.constraints.Email does work!!!
> I attached a JUnit 4 test which shows the issue.

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