hibernate/hibernate-validator — pull request #343 by sosna (2014-09-17 20:25:42+00:00)
Title: HV-931 - Using NaN and Infinity triggers an Exception

This is a proposed fix for https://hibernate.atlassian.net/browse/HV-931.

New tests for NaN, positive and negative infinity have been added to MaxValidatorForNumberTest.java and MinValidatorForNumberTest.java.

The following rules are proposed:
- When the value is NaN, max and min validation will fail.
- When the value is positive infinity, min validation will pass, while max validation will fail.
- When the value is negative infinity, min validation will fail, while max validation will pass.

In addition, an "else if" might have been missing in DecimalMinValidatorForNumber (on line 65 in the original file, line 83 in this pull request).