RFR: 8242553: IntegerSpinner and DoubleSpinner do not wrap around values correctly in some cases
Jeanette Winzenburg
fastegal at openjdk.org
Wed Mar 27 16:33:28 UTC 2024
On Wed, 27 Mar 2024 15:17:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> (0 + 101) % (100 - 0) + 0 = 1
>
> the code in this PR produces no movement (0). Same for the decrement.
>
which means that the modulo arithmetic is not yet quite correct (_not_ that the modulo behavior as such is wrong ;)
nice test case, btw ;)
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1431#issuecomment-2023222179
More information about the openjfx-dev
mailing list