Project

General

Profile

Actions

Bug #3671

closed

DateTime dumped by Marshal from ruby 1.8 cannot be loaded by ruby 1.9

Added by drbrain (Eric Hodel) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3dev (2010-07-07 trunk 28561) [x86_64-darwin10.4.0]
Backport:
[ruby-core:31659]

Description

=begin
$ ruby -rdate -e 'Marshal.dump DateTime.now, $stdout' | ruby19 -rdate -e 'p Marshal.load $stdin.read'
-e:1:in load': class DateTime needs to have method _load' (TypeError)
from -e:1:in `'

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ruby19 -v
ruby 1.9.3dev (2010-07-07 trunk 28561) [x86_64-darwin10.4.0]

Ruby 1.9 should implement DateTime._load in order to load from older versions
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0