Skip to content

10gen/get_long_value

Repository files navigation

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.

About

Demonstrate different behaviour of getLongValue in JRuby 9 and 10

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published