Project

General

Profile

Actions

Bug #12349

closed

Can't load OpenStruct with Syck with Ruby 2.3.x

Added by PSchambacher (Pierre Schambacher) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
[ruby-core:75354]

Description

This is the same kind of problem that happened with Psych here: https://bugs.ruby-lang.org/issues/11884

When trying to load an OpenStruct object using Syck, the @table instance variable is nil, making the has_key? method fail in respond_to_missing?

I'm assigning to Aaron Patterson for triaging.


Files

syck_error.log (635 Bytes) syck_error.log stack trace PSchambacher (Pierre Schambacher), 05/04/2016 10:39 PM
syck_error.rb (101 Bytes) syck_error.rb reproduction script PSchambacher (Pierre Schambacher), 05/04/2016 10:39 PM

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #11884: Psych.load broken for OpenStruct in Ruby 2.3.0Closedmarcandre (Marc-Andre Lafortune)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0