Actions
Bug #4736
closedException#to_s return other string.
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
Backport:
Description
=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
Updated by authorNari (Narihiro Nakamura) almost 13 years ago
- 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
Actions
Like0
Like0