I would guess our ported logic for type these type conversions just needs some updating.
try_convert appears to use a RespondToCallSite, which I would have expected to do the right thing if there's no respond_to? defined. There may be some missing or incorrect logic in there for checking the presence of respond_to?.
Rational() calls convert on Rational, which eventually tries to call our Java-level respondsTo on the BasicObject, which blindly tries to call respond_to?. It should use a RespondToCallSite as well.
jruby 18.104.22.168-SNAPSHOT (2.3.1) 2017-02-06 3f97c7a Java HotSpot(TM) 64-Bit Server VM 25.111-b14 on 1.8.0_111-b14 +indy +jit [linux-x86_64]
Linux ok 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
nilfor the try_convert case, and raises a TypeError for
Rational(). If conversion would be possible (
to_rexist), it would properly convert
The text was updated successfully, but these errors were encountered: