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
It seems that Jruby tries to mess (in some way or another) with the parameters hash that is passed to a method. If one passes those named parameters using a true hash, that it is frozen, Jruby complains it cannot modify a frozen hash.
arg1: "normal"
RuntimeError: can't modify frozen Hash delete at org/jruby/RubyHash.java:1574 __script__ at /tmp/test.rb:11
Oh, and BTW, the original error that I saw in my application somehow complained more loudly about it:
BUG: Gotexceptionorg.jruby.exceptions.RaiseException: (RuntimeError)can'tmodifyfrozenHashbutinstrusing(0:0)=recv_kw_arg(0,using)is not supposedtoberaisingexceptions!
For what it's worth.
The text was updated successfully, but these errors were encountered:
It seems that Jruby tries to mess (in some way or another) with the parameters hash that is passed to a method. If one passes those named parameters using a true hash, that it is frozen, Jruby complains it cannot modify a frozen hash.
Here's the smallest repro I could get:
with mri 2.2.0:
with jruby-head (as of today):
Oh, and BTW, the original error that I saw in my application somehow complained more loudly about it:
For what it's worth.
The text was updated successfully, but these errors were encountered: