I have the following validation rules defined in an interface:
In my tests, I also pass unexpected values such as Double.NAN or Double.POSITIVE_INFINITY.
This triggers an exception:
The exception is caused by the call to BigDecimal.valueOf(double val) in org.hibernate.validator.internal.constraintvalidators.bv.DecimalMaxValidatorForNumber, which throws an exception if val is infinite or NaN.
The issue can be reproduced using the attached project.