[Ruby 1.9 - Bug #4736][Open] Exception#to_s return other string

Issue #4736 has been reported by Narihiro N…


Bug #4736: Exception#to_s return other string.

Author: Narihiro N.
Status: Open
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]

まつもとさんは「バグっぽい挙動」とおっしゃってました。

((URL:http://twitter.com/#!/yukihiro_matz/status/71127222177636352))
=end

Issue #4736 has been updated by Narihiro N…

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.

Author: Narihiro N.
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]

まつもとさんは「バグっぽい挙動」とおっしゃってました。

((URL:http://twitter.com/#!/yukihiro_matz/status/71127222177636352))
=end