]
Hardy Ferentschik updated HV-291:
---------------------------------
Summary: ConstraintViolation not serializable for composed constraints (was:
ConstraintViolation not Serializable for custom constraint)
ConstraintViolation not serializable for composed constraints
-------------------------------------------------------------
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-..., 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: