You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So for curiosity I ran a codebase which has been using JRuby from day one through MRI and some of the specs started failing. Looking at it, it seems JRuby is much more permissive than MRI with the double-splat, which in this case led my team to write code that is accepted by JRuby (and passes the specs) but is wrong as seen by MRI.
Environment
Running jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f OpenJDK 64-Bit Server VM 25.91-b14 on 1.8.0_91-8u91-b14-3ubuntu1~15.10.1-b14 [linux-x86_64] on Ubuntu 15.10.
This is a variant of another problem we knew we had. The other issue (don't see it offhand in our tracker) we need to split incoming symbol from non-symbol keys on the receiving side. Your bug is on the other end that kwarg-splatting does not allow that mixture at all.
So for curiosity I ran a codebase which has been using JRuby from day one through MRI and some of the specs started failing. Looking at it, it seems JRuby is much more permissive than MRI with the double-splat, which in this case led my team to write code that is accepted by JRuby (and passes the specs) but is wrong as seen by MRI.
Environment
Running
jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f OpenJDK 64-Bit Server VM 25.91-b14 on 1.8.0_91-8u91-b14-3ubuntu1~15.10.1-b14 [linux-x86_64]
onUbuntu 15.10
.Expected Behavior
Example code:
Output in MRI 2.3.1:
Actual Behavior
Output in JRuby:
(E.g. JRuby is happy to allow double-splatting of non-symbol keys).
The text was updated successfully, but these errors were encountered: