Skip to content

Marshal.dump(binding) behavior differs from CRuby #8779

Description

@ankane

Hi, when running the minitest test suite with JRuby 10, there are test failures due to a minor inconsistency with CRuby.

Minimal script:

p Marshal.dump(binding)

Environment Information

  • jruby 10.0.0.0 (3.4.2) 2025-04-13 6ed59bc OpenJDK 64-Bit Server VM 21.0.6 on 21.0.6 +indy +jit [arm64-darwin]
  • macOS 15.4.1 arm64

Expected Behavior

CRuby raises no _dump_data is defined for class Binding (TypeError).

Actual Behavior

JRuby outputs "\x04\bo:\fBinding\x00" (no error).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions