Fix #645 by calling Java Math.cbrt directly. #656

merged 1 commit into from Apr 25, 2013


None yet

3 participants


This fixed jruby#645 by calling java.lang.Math.cbrt directly. Math.cbrt was introduced in Java 5, so it is safe to use in the JRuby codebase. Also, cbrt now throws a TypeError if the argument cannot be coerced to Float.

Related rubyspec change:

@headius headius merged commit 62b9e1d into jruby:master Apr 25, 2013

1 check passed

default The Travis build passed
d1egoaz commented Apr 25, 2013

Tks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment