Actions
Bug #11884
closedPsych.load broken for OpenStruct in Ruby 2.3.0
Description
Deserialising an OpenStruct through Psych::load results in a nil error since OpenStruct now has a respond_to_missing? method whose implementation references OpenStruct's @table instance variable.
To reproduce this issue simply use Psych to dump an OpenStruct and then load it again via Psych::load. 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
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0