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 looks like we're doing 1.8 conversion logic for this case (and several others) rather than 1.9+ "checked" conversion logic. I have a fix coming that should solve this and prevent other reports down the line (by making the old 1.8 methods just call 1.9 logic).
The 1.8 methods all blindly call respond_to? which breaks on any
BasicObject-based targets as in jruby#4210. This patch modifies the
remaining 1.8 methods in TypeConverter to just call the 1.9 logic,
since there are no cases where MRI blindly calls respond_to? for
implicit conversions anymore.
Fixesjruby#4210.
etehtsea
pushed a commit
to etehtsea/jruby
that referenced
this issue
Oct 10, 2016
run ok in MRI,but jruby report error :
i found jruby call
respond_to? :to_hash
before callto_hash
,but MRI not.ENV
jruby 9.1.5.0 (2.3.1) 2016-09-23 fffffff Java HotSpot(TM) Client VM 25.101-b13 on 1.8.0_101-b13 +jit [mswin32-x86]
The text was updated successfully, but these errors were encountered: