Project

General

Profile

Bug #11884

Updated by kaikuchn (Kai Kuchenbecker) over 8 years ago

Deserialising an Since OpenStruct through Psych::load results in a nil error since OpenStruct now has a respond_to_missing? method whose implementation that references OpenStruct's the @table instance variable. variable, Psych's load implementation for OpenStruct results in a nil error. 
 I noticed this since rbenv rehash uses this feature (see this github issue https://github.com/rbenv/rbenv/issues/845). 

 To reproduce this issue simply use Psych to dump an OpenStruct and then load it again via Psych::load. through Psych, I attached an example script that does exactly this. I have also attached the error output I get when running this script. 

 I'm not sure whether to assign marcandre or tenderlove... Please tell me if you need any further information. 

 Best regards, 
 Kai

Back