[hibernate-issues] [Hibernate-JIRA] Created: (HV-355) RangeDef's min() and max() are just wrong
Trond Valen (JIRA)
noreply at atlassian.com
Thu Jul 29 07:19:36 EDT 2010
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: Hardy Ferentschik
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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list