]
Gunnar Morling resolved HV-355.
-------------------------------
Resolution: Fixed
Fix Version/s: 4.2.0
Fixed in trunk. If we decide to ship a 4.1.1 release, I'll merge down the fix.
RangeDef's min() and max() are just wrong
-----------------------------------------
Key: HV-355
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-355
Project: Hibernate Validator
Issue Type: Bug
Components: validators
Affects Versions: 4.1.0.Final
Environment: Hibernate 3.3.2.GA and Oracle XE 10.2.0
Reporter: Trond Valen
Assignee: Gunnar Morling
Fix For: 4.2.0
public RangeDef min(long min) {
addParameter( "value", min );
return this;
}
public RangeDef max(long max) {
addParameter( "value", max );
return this;
}
Do I need a test case for this? Shouldn't these methods run
addParameter("min", min) and addParameter("max", max)? I got an
exception with "Unknown parameters"... I made a MyRangeDef where I fixed this,
and it was all good :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: