[hibernate-issues] [Hibernate-JIRA] Assigned: (HV-355) RangeDef's min() and max() are just wrong

Gunnar Morling (JIRA) noreply at atlassian.com
Sat Jul 31 11:00:40 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunnar Morling reassigned HV-355:
---------------------------------

    Assignee: Gunnar Morling  (was: Hardy Ferentschik)

> 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
>
> 	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