|
From: Benoit X. (JIRA) <no...@sp...> - 2008-02-08 18:08:30
|
Constraing regexp does not display a nice message
-------------------------------------------------
Key: RCP-537
URL: http://jira.springframework.org/browse/RCP-537
Project: Spring Framework Rich Client Project
Issue Type: Bug
Affects Versions: 0.2.1
Reporter: Benoit Xhenseval
The enclosed image shows that when a regular expression is violated, the message is not formatted properly.
eg the image enclosed is the result of:
add("isin", regexp("([A-Z]{2}[A-Z0-9]{9}[0-9])?", "ISIN Format"));
this results in:
"ISIN Code org.springframework.rules.constraint.RegexpConstraint@11f2041"
Could somebody add a toString method on RegexpConstraint
public toString() {
return getDefaultMessage() + " " + pattern;
}
Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|