I have done both debugging and regenerating the bug in tests
Whenever there is only @Min on the field
The BeanValidationStrategy.getValue will hook it and do the following
at line 186 the value that comes from getValueInRange(min, max) is Bigger than Integer.Max_Value, when transformed to an integer it sometimes gives a wrong result as specified in java.math documentation "if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned."
In case my assumption is valid and there was a bug, I would love to fix it.
Thank you
I have done both debugging and regenerating the bug in tests
Whenever there is only @Min on the field The BeanValidationStrategy.getValue will hook it and do the following
at line 186 the value that comes from getValueInRange(min, max) is Bigger than Integer.Max_Value, when transformed to an integer it sometimes gives a wrong result as specified in java.math documentation "if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned."
In case my assumption is valid and there was a bug, I would love to fix it. Thank you