From: Narihiro Nakamura Date: 2011-05-19T17:40:14+09:00 Subject: [ruby-dev:43565] [Ruby 1.9 - Bug #4736][Rejected] Exception#to_s return other string. Issue #4736 has been updated by Narihiro Nakamura. Status changed from Open to Rejected =begin すみません、trunkでは直っていたようですので閉じます。 $ ./miniruby -ve "p Exception.new([:a, :b]).to_s" ruby 1.9.3dev (2011-05-05 trunk 27489) [x86_64-linux] "[:a, :b]" =end ---------------------------------------- Bug #4736: Exception#to_s return other string. http://redmine.ruby-lang.org/issues/4736 Author: Narihiro Nakamura Status: Rejected Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] =begin nariです。 Exception#to_s が文字列以外を返すことがあるようです。 1.8.7, 1.9.2 ともに再現します。 $ ruby -ve "p Exception.new([:a, :b]).to_s" ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] [:a, :b] $ ruby -ve "p Exception.new([:a, :b]).to_s" ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] [:a, :b] まつもとさんは「バグっぽい挙動」とおっしゃってました。 (()) =end -- http://redmine.ruby-lang.org