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

Henno Vermeulen (JIRA) noreply at atlassian.com
Tue Mar 2 07:09:47 EST 2010


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
    Affects Versions: 4.0.2.GA
            Reporter: Henno Vermeulen
            Assignee: Hardy Ferentschik
         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