]
Hardy Ferentschik updated HV-45:
--------------------------------
Component/s: legacy
@AssertFalse message interpolation is broken
--------------------------------------------
Key: HV-45
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-45
Project: Hibernate Validator
Issue Type: Bug
Components: legacy
Affects Versions: 3.0.0.ga
Reporter: Olle Hallin
I have an Address domain object, which shall contain at least one of the fields street,
zip, city and so on.
A completely empty address is not valid.
So I added a validator method that checks the entire object:
@AssertFalse(message = "The address is empty")
@Transient
public boolean isEmpty() {
// return true if all fields are null or empty
}
The InvalidValue generated when validating an empty Address contains "empty The
address is empty", where the prefix "empty " is derived from the method
name isEmpty().
I had expected the value "The address is empty".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: