You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seol-JY
changed the title
Incorrect minimum value comparison logic in JakartaValidationConstraintGenerator
Incorrect minimum value comparison logic in Jakarta/Javax ValidationConstraintGenerator
Dec 21, 2024
Describe the bug
In
JakartaValidationConstraintGenerator
class (line 365), there appears to be a meaningless self-comparison operation:It appears this was intended to be:
For what seems to be a mistake, I tried to verify with the following test case:
Expected the final
negativeMin
to be -100 which should cause validation errors, but the code runs without exceptions.Your environment
The code contains a self-comparison operation in its minimum value calculation, yet the validation process operates as expected in test cases.
I would like to understand:
Whether this code represents an actual issue
If it is an issue, why the test case still functions correctly
The text was updated successfully, but these errors were encountered: