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
TypeError: can't copy BigDecimal
from org/jruby/RubyNumeric.java:584:in `initialize_copy'
from org/jruby/RubyKernel.java:1883:in `initialize_dup'
from org/jruby/RubyKernel.java:1913:in `dup'
from (irb):8:in `<eval>'
from org/jruby/RubyKernel.java:1005:in `eval'
from org/jruby/RubyKernel.java:1315:in `loop'
from org/jruby/RubyKernel.java:1125:in `catch'
from org/jruby/RubyKernel.java:1125:in `catch'
from /Users/alex/code/opensource/jruby/bin/irb:13:in `<top>'
Looks like this was changed in MRI around 2011. They eliminated the custom .new and replaced it with a standard allocate+initialize: ruby/ruby@f9a4d571
The same flip in JRuby should not be too difficult.
Missed
initialize_copy
for BigDecimal.MRI 2.2.2 output:
#<BigDecimal:7fdd1d01c910,'0.1E1',9(27)>
Jruby output:
Failing test in ActiveSupport:
https://github.com/rails/rails/blob/master/activesupport/test/core_ext/object/duplicable_test.rb#L21
This code testing
Object
extension here: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/duplicable.rb#L81Backtrace:
Re-run test from
activesupport
directory with:ruby -w -Itest test/core_ext/object/duplicable_test.rb -n test_duplicable
The text was updated successfully, but these errors were encountered: