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
$ ~/Documents/jruby/bin/jruby -X+T marshal.rb
core:/core/rubinius/common/type.rb:276:in `method_missing': undefined method `constant_table' for Object:Class (NoMethodError)
from core:/core/rubinius/common/type.rb:276:in `const_exists?'
from core:/core/rubinius/common/marshal.rb:474:in `block in const_lookup'
from core:/core/rubinius/common/marshal.rb:473:in `each'
from core:/core/rubinius/common/marshal.rb:473:in `const_lookup'
from core:/core/rubinius/common/marshal.rb:864:in `construct_user_marshal'
from core:/core/rubinius/common/marshal.rb:549:in `construct'
from core:/core/rubinius/common/marshal.rb:701:in `block in construct_hash'
from core:/core/rubinius/common/marshal.rb:699:in `times'
from core:/core/rubinius/common/marshal.rb:699:in `construct_hash'
from core:/core/rubinius/common/marshal.rb:539:in `construct'
from core:/core/rubinius/common/marshal.rb:1233:in `load'
from marshal.rb:3:in `<main>'
The text was updated successfully, but these errors were encountered:
I think fixed in 0b342f7, but I can't run your program as it looks like it's missing other code from what you were trying to run:
core:/core/rubinius/common/marshal.rb:475:in `block in const_lookup': undefined class/module Gem::Requirement (ArgumentError)
from core:/core/rubinius/common/marshal.rb:473:in `const_lookup'
from core:/core/rubinius/common/marshal.rb:864:in `construct_user_marshal'
from core:/core/rubinius/common/marshal.rb:549:in `construct'
from core:/core/rubinius/common/marshal.rb:701:in `block in construct_hash'
from core:/core/rubinius/common/marshal.rb:699:in `construct_hash'
from core:/core/rubinius/common/marshal.rb:539:in `construct'
from core:/core/rubinius/common/marshal.rb:1233:in `load'
jt e 'puts Marshal.send(:restore, "\x04\bc\vString")'
core:/core/rubinius/common/type.rb:240:in `method_missing': undefined method `constant_table' for Object:Class (NoMethodError)
from core:/core/rubinius/common/type.rb:240:in `const_get'
from core:/core/rubinius/common/marshal.rb:478:in `block in const_lookup'
from core:/core/rubinius/common/marshal.rb:473:in `const_lookup'
from core:/core/rubinius/common/marshal.rb:602:in `construct_class'
from core:/core/rubinius/common/marshal.rb:519:in `construct'
from core:/core/rubinius/common/marshal.rb:1233:in `load'
from -e:1:in `<main>'
This was a different but related issue. The Rubinius marshal implementation directly calls some internal methods. Those try to access data structures which aren't there - so we need to replace these methods with our versions.
Example
Expected (ruby,jruby)
Actual
The text was updated successfully, but these errors were encountered: