Skip to content

Regression with Marshal.load(a Hash) #5523

@larskanis

Description

@larskanis

Environment

$ ruby -v
jruby 9.2.5.0 (2.5.0) 2018-12-06 6d5a228 OpenJDK 64-Bit Server VM 10.0.2+13-Ubuntu-1ubuntu0.18.04.2 on 10.0.2+13-Ubuntu-1ubuntu0.18.04.2 +jit [linux-x86_64]

$ uname -a
Linux netzbuch 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Expected Behavior

This is what MRI 2.5.3 and JRuby <= 9.2.4.0 computes:

h={:€a=>nil, :€c=>nil, :€h=>nil}
Marshal.load(Marshal.dump(h)) #  => {:€a=>nil, :€c=>nil, :€h=>nil}

Actual Behavior

But with JRuby-9.2.5.0 wired things are happening:

h={:€a=>nil, :€c=>nil, :€h=>nil}
Marshal.load(Marshal.dump(h)) #  => {:€a=>nil, :€c=>true, nil=>:€h}

This regression was raised by the Eventbox test suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions