This repo demonstrates the difference in behaviour of getLongValue
method
between JRuby 9 and 10.
The only test in this repo demonstrates the problem. When you run the test
with JRuby 9, it passes because getLongValue
raises RangeError
when
the value is out of range. However, when you run the same test with JRuby
10, it fails because getLongValue
returns a truncated value instead of
raising an error.
I am not sure what the correct behaviour should be, but I believe that the change in behaviour between JRuby 9 and 10 is unexpected and should be documented.