[
http://opensource.atlassian.com/projects/hibernate/browse/HV-291?page=com...
]
Hardy Ferentschik commented on HV-291:
--------------------------------------
Thanks for the bug report. I wish all bug reports would come with a sscce ;-)
The problem is not so much with custom constraints, but rather that the custom email
constraint uses constraint composition. I have a solution. Just need to make sure that
there are no side effects. A fix will be in the next release.
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
Fix For: 4.1.0
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira