[
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-219?page=c...
]
Emmanuel Bernard commented on BVAL-219:
---------------------------------------
Gerhard
actually it's a bad practice not to expect calls to #toString at any time. imo the
real question is that it might expose information which might be surprising. in one of my
projects i used InvalidValueAware as workaround. for sure it isn't that nice as well.
->
#1:
for simple data-types like primitives, dates,... there is imo no problem to call
#toString
#2:
we have to thing about a nice approach how we can handle more complex cases btw. give the
user more control for such cases - maybe with an additional annotation for such special
methods.
Consider interpolating the value in error messages
--------------------------------------------------
Key: BVAL-219
URL:
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-219
Project: Bean Validation
Issue Type: New Feature
Reporter: Emmanuel Bernard
The main drawback is that there is no formatting and that we will call value.toString()
to resolve the value into string.
--
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