I think it's an issue with other validations as well - "we" typically
return true for frontend validations if the Object being validated is of
the wrong type.

In my opinion, it would be better to let a ClassCastException be thrown
to allow developers see they're doing something wrong...

On 30/04/15 14:38, Ramesh wrote:
> Hi,
> 
>  We have a validation issue with IntegerEntityModelTextBoxEditor. It
> converts non numeric values as null to the model. As a result
> IntegerValidation.validate() will be success always even in case of non
> integer value.
> 
> Any suggestion to fix this issue?.
> 
> Regards,
> Ramesh
> _______________________________________________
> Devel mailing list
> [email protected]
> http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________
Devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/devel

Reply via email to