From: email@... Date: 2018-01-04T12:47:34+00:00 Subject: [ruby-core:84629] [Ruby trunk Bug#14314] Marshalling broken in Ruby 2.5.0 for Structs with keyword_init: true Issue #14314 has been reported by jurriaan (Jurriaan Pruis). ---------------------------------------- Bug #14314: Marshalling broken in Ruby 2.5.0 for Structs with keyword_init: true https://bugs.ruby-lang.org/issues/14314 * Author: jurriaan (Jurriaan Pruis) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Steps to reproduce: ~~~ irb(main):001:0> Foo = Struct.new(:foo) => Foo irb(main):002:0> Marshal.load(Marshal.dump(Foo.new('a'))) => # irb(main):003:0> Bar = Struct.new(:bar, keyword_init: true) => Bar(keyword_init: true) irb(main):004:0> Marshal.load(Marshal.dump(Bar.new(bar: 'a'))) Traceback (most recent call last): 3: from /home/jurriaan/.rubies/ruby-2.5.0/bin/irb:11:in `
' 2: from (irb):4 1: from (irb):4:in `load' ArgumentError (wrong number of arguments (given 1, expected 0)) ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: